summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-08 17:33:13 (GMT)
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-01-20 20:33:28 (GMT)
commit66e511a416b80585995d2b4a669eb037471cb57d (patch)
tree40d43f4cc68ba4346da00728a437ef0fbac78209
parente90ecc932c4857c774405dc398c940290f70f371 (diff)
downloadghc-66e511a416b80585995d2b4a669eb037471cb57d.zip
ghc-66e511a416b80585995d2b4a669eb037471cb57d.tar.gz
ghc-66e511a416b80585995d2b4a669eb037471cb57d.tar.bz2
testsuite: Preserve more information in framework failures
Namely print the entire exception in hopes that this will help track down #17649.
-rw-r--r--testsuite/driver/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 228a82b..b534d11 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -975,8 +975,8 @@ def test_common_work(watcher: testutil.Watcher,
except KeyboardInterrupt:
stopNow()
except Exception as e:
- framework_fail(name, way, str(e))
traceback.print_exc()
+ framework_fail(name, way, traceback.format_exc())
t.n_tests_skipped += len(set(all_ways) - set(do_ways))