Skip to content

Commit

Permalink
add 'runner' as possible username in order to let regression test run…
Browse files Browse the repository at this point in the history
… with spack github action
  • Loading branch information
shahzebsiddiqui committed Oct 14, 2024
1 parent c7a26f2 commit 037ee3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/buildsystem/test_spack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def test_spack_examples():
# spack builds must run in container ghcr.io/buildtesters/buildtest_spack:latest which comes with username 'spack' and home directory '/home/spack'
# if not (getpass.getuser() == "spack" and os.path.expanduser("~") == "/home/spack"):
if not (getpass.getuser() in ["root", "spack"] and shutil.which("spack")):
if not (getpass.getuser() in ["root", "spack", "runner"] and shutil.which("spack")):
pytest.skip(
"Unable to run this test requires docker container: ghcr.io/buildtesters/buildtest_spack:spack-sc23"
)
Expand Down

0 comments on commit 037ee3a

Please sign in to comment.