Skip to content

Commit 46f6320

Browse files
authored
Merge pull request #188 from bhearsum/no-check-chdir
Don't chdir into check_path
2 parents d3220d9 + 272c625 commit 46f6320

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tcadmin/check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ def run_checks(pytest_options):
2121
if not os.path.exists(check_path):
2222
print("No checks defined; path {} does not exist".format(check_path))
2323
return False
24-
os.chdir(check_path)
25-
return 0 == pytest.main(list(pytest_options))
24+
return 0 == pytest.main([check_path] + list(pytest_options))

0 commit comments

Comments
 (0)