make fast_fail and print_everything function params; return n_errs from run_forever
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 26 Jul 2016 08:00:04 +0000 (10:00 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Nov 2020 14:04:34 +0000 (15:04 +0100)
testing/test_volume_split.py

index 50e1c14..9d1a5f2 100755 (executable)
@@ -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 """