Skip to content

Commit

Permalink
PR #8131 from Eran: python subprocess invocation using same python exe
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jan 9, 2021
2 parents e623453 + 95907ab commit b094231
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions unit-tests/run-unit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,7 @@ def find( dir, mask ):
for py_test in find(current_dir, target):
n_tests += 1
progress( py_test + ' ...' )
if linux:
cmd = ["python3"]
else:
cmd = ["py", "-3"]
cmd = [sys.executable]
if sys.flags.verbose:
cmd += ["-v"]
cmd += [current_dir + os.sep + py_test]
Expand Down Expand Up @@ -319,10 +316,7 @@ def check_log_for_fails(log, testname, exe):
progress( testname, '>', log, '...' )
n_tests += 1
test_path = current_dir + os.sep + py_test
if linux:
cmd = ["python3", test_path]
else:
cmd = ["py","-3", test_path]
cmd = [sys.executable, test_path]
try:
run( cmd, stdout=log )
except FileNotFoundError:
Expand Down

0 comments on commit b094231

Please sign in to comment.