Skip to content

Commit

Permalink
Disable caching of test results
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Jul 24, 2020
1 parent 7823ed0 commit 65e4d0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testr/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def chdir(dirname=None):
args += (f'--junit-xml={report_file}',)
args += ('-o', 'junit_family=xunit2')

# Disable caching of test results to prevent users trying to write into
# flight directory if tests fail running on installed package.
args = args + ('-p', 'no:cacheprovider')

stack_level = kwargs.pop('stack_level', 1)
calling_frame_record = inspect.stack()[stack_level] # Only works for stack-based Python
calling_func_file = calling_frame_record[1]
Expand Down

0 comments on commit 65e4d0b

Please sign in to comment.