Skip to content

Commit

Permalink
Merge pull request #188 from bhearsum/no-check-chdir
Browse files Browse the repository at this point in the history
Don't chdir into check_path
  • Loading branch information
djmitche authored May 19, 2021
2 parents d3220d9 + 272c625 commit 46f6320
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 46f6320

Please sign in to comment.