make test: handle multiple failures in one case 26/11126/2
authorKlement Sekera <ksekera@cisco.com>
Tue, 13 Mar 2018 20:22:32 +0000 (21:22 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 14 Mar 2018 13:33:45 +0000 (13:33 +0000)
Change-Id: I5451ddec4bfdede12653415f90bf991e81494033
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/run_tests.py

index fd8ca1f..a3d5336 100644 (file)
@@ -99,7 +99,10 @@ def run_forked(suite):
             link_path = '%s%s-FAILED' % (failed_dir, lttd)
             global_logger.error("Creating a link to the failed " +
                                 "test: %s -> %s" % (link_path, lttd))
-            os.symlink(last_test_temp_dir, link_path)
+            try:
+                os.symlink(last_test_temp_dir, link_path)
+            except:
+                pass
             api_post_mortem_path = "/tmp/api_post_mortem.%d" % vpp_pid
             if os.path.isfile(api_post_mortem_path):
                 global_logger.error("Copying api_post_mortem.%d to %s" %