From: Christian Herdtweck Date: Tue, 26 Jul 2016 08:00:04 +0000 (+0200) Subject: make fast_fail and print_everything function params; return n_errs from run_forever X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e6b3c04694ca0dffe5052ab77499ace2d09f2f60;p=python-delta-tar make fast_fail and print_everything function params; return n_errs from run_forever --- 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 """