Skip to content

Commit

Permalink
Test different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Nov 7, 2018
1 parent ec2c867 commit bc4d666
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------------

import sys

from subprocess import call


def main():
call(
'rose test-battery --state=save -j 5 || (echo -e "\n\nRerunning Failed Tests...\n\n"; rose test-battery -v --state=save,failed -j 5)',
shell=True)
command = ['rose', 'test-battery', '-j', '5']
if call(command + ['--state=save']):
# Non-zero return code
sys.stderr.write('\n\nRerunning Failed Tests...\n\n')
# Exit with final return code
sys.exit(call(command + ['--state=save,failed', '-v']))


if __name__ == '__main__':
Expand Down

0 comments on commit bc4d666

Please sign in to comment.