Skip to content

Commit

Permalink
Attempt to fix PR test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmreding committed Dec 12, 2024
1 parent 9266e4e commit 23e1bba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/New_ATS/pylib/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ def run_test(test_config):
# Desc: Run the tests in the testlist.json file
def main():
global FAILED

# Quit LabVIEW if it is running
try:
run_command(['taskkill', '/f', '/im', 'labview.exe'])
except Exception:
pass

# read the list of tests from testlist.json
test_list_json_path = pathlib.Path(__file__).parent.absolute() / 'testlist.json'
with open(test_list_json_path) as f:
Expand Down Expand Up @@ -197,7 +204,7 @@ def main():
test_config['python_server_folder'] = test_config['test_folder'] / 'Python_server'
run_test(test_config)
if FAILED:
raise Exception(f"{FAILED} test cases have failed. Please review the above results")
raise Exception(f"{FAILED} test cases have failed. Please review the above results")

if __name__ == '__main__':
main()

0 comments on commit 23e1bba

Please sign in to comment.