Skip to content

Commit

Permalink
fix another test
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 28, 2024
1 parent c0d4de3 commit dcc9277
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_cli_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@ def run_main_with_arguments(arguments: list) -> tuple:
"src/hvps",
"__main__.py",
)
main_file_path = os.path.abspath(main_file_path)
main_file_path = str(os.path.abspath(main_file_path))

print(f"__main__.py file path: {main_file_path}")
print(f"__main__.py file path: {main_file_path}", [sys.executable, main_file_path] + arguments)
commands = [sys.executable, main_file_path] + arguments
commands = [str(command) for command in commands]

process = subprocess.Popen(
[sys.executable, main_file_path] + arguments,
commands,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)

stdout, stderr = process.communicate()
exit_code = process.returncode

Expand Down

0 comments on commit dcc9277

Please sign in to comment.