Skip to content

Commit

Permalink
Don't chdir into check_path
Browse files Browse the repository at this point in the history
This breaks checks for the only user of them (ci-admin), because it
becomes unable to find its configuration.
  • Loading branch information
bhearsum committed May 19, 2021
1 parent d3220d9 commit 272c625
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcadmin/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ def run_checks(pytest_options):
if not os.path.exists(check_path):
print("No checks defined; path {} does not exist".format(check_path))
return False
os.chdir(check_path)
return 0 == pytest.main(list(pytest_options))
return 0 == pytest.main([check_path] + list(pytest_options))

0 comments on commit 272c625

Please sign in to comment.