Skip to content

Commit

Permalink
FIXUP: Fix pytest args
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Feb 7, 2023
1 parent d42f042 commit 9347f8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev_scripts/pytest-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def get_podman_version():

def run_tests_in_parallel(pytest_args):
print("running tests in parallel")
os.execvp("pytest", pytest_args + ["-n", "4"])
args = ["pytest"] + pytest_args + ["-n", "4"]
os.execvp(args[0], args)


def run_tests_in_sequence(pytest_args):
print("running tests sequentially")
os.execvp("pytest", pytest_args)
args = ["pytest"] + pytest_args
os.execvp(args[0], args)


if __name__ == "__main__":
Expand Down

0 comments on commit 9347f8e

Please sign in to comment.