From 4426cad46714f881b92b4d9f8cde9d7bec5c2d55 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 9 Apr 2025 13:37:44 -0400 Subject: [PATCH] MT#55283 preserve stderr on test fail Change-Id: I157213a2e396212f14fbaac82441011e180fe3a3 --- perl/NGCP/Rtpengine/AutoTest.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl/NGCP/Rtpengine/AutoTest.pm b/perl/NGCP/Rtpengine/AutoTest.pm index 696800090..add50d0ea 100644 --- a/perl/NGCP/Rtpengine/AutoTest.pm +++ b/perl/NGCP/Rtpengine/AutoTest.pm @@ -325,6 +325,8 @@ sub terminate { print "hint: rtpe stdout output is at $rtpe_stdout\n"; print "hint: rtpe stderr output is at $rtpe_stderr\n"; + print "last lines:\n"; + system(qw(tail -n 40), $rtpe_stderr); die "error: $msg\n"; }