diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 664882f78..68863d7b9 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -189,6 +189,10 @@ The --libc-only option has been changed to --build-only now that packages builds have been added. + + + Improved formatting of testResult() output. + diff --git a/test/lib/pgBackRestTest/Common/JobTest.pm b/test/lib/pgBackRestTest/Common/JobTest.pm index 8b0766192..9b41f8948 100644 --- a/test/lib/pgBackRestTest/Common/JobTest.pm +++ b/test/lib/pgBackRestTest/Common/JobTest.pm @@ -27,6 +27,7 @@ use pgBackRest::FileCommon; use pgBackRestTest::Common::ContainerTest; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::ListTest; +use pgBackRestTest::Common::RunTest; #################################################################################################################################### # new diff --git a/test/lib/pgBackRestTest/Common/RunTest.pm b/test/lib/pgBackRestTest/Common/RunTest.pm index 64eed2fa6..b3f87e4a4 100644 --- a/test/lib/pgBackRestTest/Common/RunTest.pm +++ b/test/lib/pgBackRestTest/Common/RunTest.pm @@ -332,8 +332,8 @@ sub testResult if (!waitMore($oWait)) { confess - 'expected ' . (defined($strExpected) ? "\"${strExpected}\"" : '[undef]') . - " but actual was " . (defined($strActual) ? "\"${strActual}\"" : '[undef]'); + "expected:\n" . (defined($strExpected) ? "\"${strExpected}\"" : '[undef]') . + "\nbut actual was:\n" . (defined($strActual) ? "\"${strActual}\"" : '[undef]'); } } else
The --libc-only option has been changed to --build-only now that packages builds have been added.
Improved formatting of testResult() output.
testResult()