Sleep 1 sec after set test. 67/58567/2
authorwutianwei <wutianwei1@huawei.com>
Fri, 15 Jun 2018 06:22:39 +0000 (14:22 +0800)
committerwutianwei <wutianwei1@huawei.com>
Wed, 20 Jun 2018 01:57:34 +0000 (09:57 +0800)
if we set testid and start test immediately,
the first test's result can't be got from jaeger

Change-Id: Ia2ab8a91d8c5f9956ea4d3d7c2436fb05490acee
Signed-off-by: wutianwei <wutianwei1@huawei.com>
clover/test/fraser_a_b_test.py

index cfbc79f..2270e04 100644 (file)
@@ -218,6 +218,8 @@ def main(argv):
     test_id = uuid.uuid4()
     rr.set_route_rules(test_id)
     tracing.setTest(test_id)
+    # wait 1 sec to avoid missing the first test result
+    time.sleep(1)
     try:
         output = subprocess.check_output(cmd, shell=True)
     except subprocess.CalledProcessError, e: