From 7364c3cf7e0548bee7457909fae076a2a11fbf30 Mon Sep 17 00:00:00 2001
From: adrianciu <adrian.ciu@codemart.ro>
Date: Fri, 7 Feb 2025 11:50:06 +0200
Subject: [PATCH] esd-spack-installation: added spack install packages method

---
 .gitlab-ci.yml                       | 4 ++--
 esd/tests/spack_from_scratch_test.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 030ebdbd..1affd3bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,8 +31,8 @@ testing-pytest:
     - chmod +x esd/utils/bootstrap.sh
     - ./esd/utils/bootstrap.sh
     - echo "$SPACK_ENV_ACCESS_TOKEN"
-#    - pip install .
-#    - pytest ./esd/tests/ -s --junitxml=test-results.xml
+    - pip install .
+    - pytest ./esd/tests/ -s --junitxml=test-results.xml
   artifacts:
     when: always
     reports:
diff --git a/esd/tests/spack_from_scratch_test.py b/esd/tests/spack_from_scratch_test.py
index eab1fbf1..984556e5 100644
--- a/esd/tests/spack_from_scratch_test.py
+++ b/esd/tests/spack_from_scratch_test.py
@@ -145,7 +145,7 @@ def test_spack_from_scratch_concretize_5(tmp_path):
 def test_spack_from_scratch_concretize_6(tmp_path):
     install_dir = tmp_path
     env = SpackModel('test-spack-env', install_dir,
-                     f'https://oauth2:{SPACK_ENV_ACCESS_TOKEN}@gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
+                     f'https://oauth2:"$SPACK_ENV_ACCESS_TOKEN"@gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
     repo = SpackModel('ebrains-spack-builds', install_dir,
                       'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git')
     spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo])
@@ -158,7 +158,7 @@ def test_spack_from_scratch_concretize_6(tmp_path):
 def test_spack_from_scratch_concretize_7(tmp_path):
     install_dir = tmp_path
     env = SpackModel('test-spack-env', install_dir,
-                     f'https://oauth2:{SPACK_ENV_ACCESS_TOKEN}gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
+                     f'https://oauth2:"$SPACK_ENV_ACCESS_TOKEN"gitlab.ebrains.eu/ri/projects-and-initiatives/virtualbraintwin/test-spack-env.git')
     repo = SpackModel('ebrains-spack-builds', install_dir,
                       'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git')
     spack_manager = SpackManagerCreator.get_spack_manger(SpackManagerEnum.FROM_SCRATCH, env=env, repos=[repo])
-- 
GitLab