Jakub Kicinski <kuba@xxxxxxxxxx> writes: > Instead of a summary line print the full exception. > This makes debugging Python tests much easier. > > Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> Reviewed-by: Petr Machata <petrm@xxxxxxxxxx> > @@ -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