Jakub Kicinski kuba@kernel.org writes:
Instead of a summary line print the full exception. This makes debugging Python tests much easier.
Signed-off-by: Jakub Kicinski kuba@kernel.org
Reviewed-by: Petr Machata petrm@nvidia.com
@@ -85,7 +86,8 @@ KSFT_RESULT = None totals['xfail'] += 1 continue except Exception as e:
for line in str(e).split('\n'):
tb = traceback.format_exc()
for line in tb.strip().split('\n'):
(The strip is necessary to get rid of trailing newlines.)
ksft_pr("Exception|", line) ktap_result(False, cnt, case) totals['fail'] += 1