tests: Speedup tests by 30%. 45/18345/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Sat, 16 Mar 2019 02:16:50 +0000 (19:16 -0700)
committerNeale Ranns <nranns@cisco.com>
Mon, 18 Mar 2019 14:08:34 +0000 (14:08 +0000)
Baseline:
  2598325153 function calls (2598296959 primitive calls) in 2257.698 seconds

Post-changeset:
 1495427 function calls (1467233 primitive calls) in 1572.080 seconds

Change-Id: I191b68b29c9e0f19964bf0b8879ddf357c9cbd5c
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/run_tests.py

index 6ceb0af..0c3b3f1 100644 (file)
@@ -441,6 +441,7 @@ def run_forked(testcase_suites):
                                                    manager)
                     wrapped_testcase_suites.add(new_testcase)
                     unread_testcases.add(new_testcase)
+            time.sleep(0.1)
     except Exception:
         for wrapped_testcase_suite in wrapped_testcase_suites:
             wrapped_testcase_suite.child.terminate()