Skip to content

Commit

Permalink
Add back empty cache detection
Browse files Browse the repository at this point in the history
As part of the refactors the empty stestr timing cache removal code was
removed from the travis config, but the cache wasn't removed. Adding the
python 3.8 job causes a failure because travis has no cached timing data
but still creates the empty directory which triggers
mtreinish/stestr#266. This adds back the empty cache removal to
workaround it so we can use the timing data for scheduling in future
runs.
  • Loading branch information
mtreinish committed Nov 11, 2019
1 parent 7df9269 commit 8b711cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ stage_generic: &stage_generic
- stestr run
after_failure:
- python tools/report_ci_failure.py
before_script:
- |
if [ ! "$(ls -A .stestr)" ]; then
rm -rf .stestr
fi
stage_linux: &stage_linux
<<: *stage_generic
Expand Down

0 comments on commit 8b711cd

Please sign in to comment.