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 a94add0 commit 656f1b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 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 @@ -64,7 +65,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 656f1b6

Please sign in to comment.