Skip to content

Commit

Permalink
Account for different path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jul 13, 2024
1 parent d024e79 commit 0a4a429
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions run_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env python3

import platform
import subprocess
import threading
from datetime import datetime, timedelta
from datetime import datetime
from pathlib import Path

TEST_RUNNING_MSG = """
Expand Down Expand Up @@ -55,8 +56,12 @@ def run(self):
str(self.shard_count),
"--shard-index",
str(self.shard_index),
"--verbosity",
"high",
]

print(f"Running {' '.join(cmd)}")

result = subprocess.run(
cmd,
capture_output=True,
Expand All @@ -72,7 +77,11 @@ def run(self):

if __name__ == "__main__":
lock_file = Path(__file__).parent / "test_err_cnt.log.lock"
test_file = Path(__file__).parent / "build" / "test" / "test"

if "Windows" == platform.system():
test_file = Path(__file__).parent / "build" / "test" / "Debug" / "test.exe"
else:
test_file = Path(__file__).parent / "build" / "test" / "test"

if lock_file.exists():
print(
Expand Down

0 comments on commit 0a4a429

Please sign in to comment.