aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-09-30 15:12:19 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-10-06 22:59:03 +0000
commit76c37d2d8464827f7270b162bad8db344aa13a5d (patch)
tree25ff00592f50619a75b0e944454d22e2199ef447
parentfc7e71100306a9313ce8346576b7d86abd6b401e (diff)
make test: Create link to failed test dir on timeout. (VPP-1011)
- Also change default coredump configuration from "coredump-size unlimited" to "full-coredump" Change-Id: Iefedc2636f2d9696b7575b34e91dd7be49f601fa Signed-off-by: Dave Wallace <dwallacelf@gmail.com> (cherry picked from commit 981fadf928dadac683d2f629edf738aa91510af3)
-rw-r--r--test/framework.py2
-rw-r--r--test/run_tests.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py
index 008bda3b..869a3402 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -205,7 +205,7 @@ class VppTestCase(unittest.TestCase):
except:
pass
if coredump_size is None:
- coredump_size = "coredump-size unlimited"
+ coredump_size = "full-coredump"
cls.vpp_cmdline = [cls.vpp_bin, "unix",
"{", "nodaemon", debug_cli, coredump_size, "}",
"api-trace", "{", "on", "}",
diff --git a/test/run_tests.py b/test/run_tests.py
index 9614080d..999252d1 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):