aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_tests.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-09-30 15:12:19 -0400
committerDave Wallace <dwallacelf@gmail.com>2017-09-30 19:54:54 -0400
commit981fadf928dadac683d2f629edf738aa91510af3 (patch)
treebfc6566c6f1fa2fd5aba1c1ea6d41ba48cf8d392 /test/run_tests.py
parent25dc16715ee3fc0a600e2f58841173249bfae501 (diff)
make test: Create link to failed test dir on timeout.
- Also change default coredump configuration from "coredump-size unlimited" to "full-coredump" Change-Id: Iefedc2636f2d9696b7575b34e91dd7be49f601fa Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/run_tests.py')
-rw-r--r--test/run_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/run_tests.py b/test/run_tests.py
index 9614080d977..999252d1277 100644
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -57,6 +57,12 @@ def run_forked(suite):
"runner process (last test running was "
"`%s' in `%s')!" %
(last_test, last_test_temp_dir))
+ failed_dir = os.getenv('VPP_TEST_FAILED_DIR')
+ lttd = last_test_temp_dir.split("/")[-1]
+ 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)
if last_test_temp_dir and last_test_vpp_binary:
core_path = "%s/core" % last_test_temp_dir
if os.path.isfile(core_path):