aboutsummaryrefslogtreecommitdiff
path: root/testsuite/lib/runtest.exp
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-05-20 00:55:49 -0500
committerJacob Bachmeyer <jcb@gnu.org>2021-05-20 00:55:49 -0500
commite8d08f039bfd09b513a3e68b5bd54618f0ce5cf6 (patch)
tree7fdb5fc1b5ad23dd55b621ada2442643023c2731 /testsuite/lib/runtest.exp
parent3be6fdc0ee4b2af9eb7bbd768c9d66ee77be9ea5 (diff)
Preserve nested runtest log messages when test fails in stats.exp
Diffstat (limited to 'testsuite/lib/runtest.exp')
-rw-r--r--testsuite/lib/runtest.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/lib/runtest.exp b/testsuite/lib/runtest.exp
index 4efd0df..299cb0a 100644
--- a/testsuite/lib/runtest.exp
+++ b/testsuite/lib/runtest.exp
@@ -70,6 +70,13 @@ proc runtest_setup_nested_testsuite {} {
}
}
+proc runtest_copy_nested_testsuite_log { tool } {
+ verbose -log -- "---- ${tool}.log from failed test ----"
+ spawn -open [open [testsuite file -object -top tmpdir "${tool}.log"]]
+ expect { .+ { exp_continue } }
+ verbose -log -- "---- end ${tool}.log ----"
+}
+
proc runtest_cleanup_nested_testsuite {} {
upvar 1 tmpdir tmpdir