Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #72 from Cosmian/fix-cmd-localtest
Browse files Browse the repository at this point in the history
Fix localtest command on some environment
  • Loading branch information
grydz authored Oct 21, 2024
2 parents 17fd462 + 41e477c commit 721cf64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mse_cli/common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def run_tests(
env["TEST_SEALED_SECRET_JSON"] = str(sealed_secrets.resolve())

try:
subprocess.check_call(app_config.tests_cmd, cwd=tests, env=env)
subprocess.check_call(
[sys.executable, "-m", app_config.tests_cmd], cwd=tests, env=env
)

LOG.info("Tests successful")
return True
Expand Down
2 changes: 1 addition & 1 deletion src/mse_cli/home/command/sgx_operator/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run(args) -> None:

try:
subprocess.check_call(
code_config.tests_cmd,
[sys.executable, "-m", code_config.tests_cmd],
cwd=args.test,
env=dict(
os.environ, TEST_REMOTE_URL=f"https://{docker.host}:{docker.port}"
Expand Down

0 comments on commit 721cf64

Please sign in to comment.