From e6b3c04694ca0dffe5052ab77499ace2d09f2f60 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 26 Jul 2016 10:00:04 +0200 Subject: [PATCH] make fast_fail and print_everything function params; return n_errs from run_forever --- testing/test_volume_split.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/testing/test_volume_split.py b/testing/test_volume_split.py index 50e1c14..9d1a5f2 100755 --- a/testing/test_volume_split.py +++ b/testing/test_volume_split.py @@ -330,16 +330,12 @@ def get_extract_mode(create_mode, extract_start): return full_extract_mode -def test_forever(): +def test_forever(fast_fail=False, print_everything=False): """ Main function, called when running file as script runs do_test in infinite loop """ - # more params - fast_fail = True - print_everything = False - # seed properly random.seed() @@ -413,6 +409,8 @@ def test_forever(): for params in error_params: print(params) + return n_errs + class VolumeSplitTest(TestCase): """ runs all combinations of params from run_forever a few times """ -- 1.7.1