2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

zdtm: show errors if a test failed

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-09-02 01:00:26 +04:00
committed by Pavel Emelyanov
parent 292d0adfdd
commit 234b5883b9

View File

@@ -282,10 +282,14 @@ case_error()
echo "====================== ERROR ======================"
if [ -n "$DUMP_PATH" ]; then
[ -e "$DUMP_PATH/dump.log" ] &&
[ -e "$DUMP_PATH/dump.log" ] && {
echo "Dump log : $DUMP_PATH/dump.log"
[ -e "$DUMP_PATH/restore.log" ] &&
cat $DUMP_PATH/dump.log* | grep Error
}
[ -e "$DUMP_PATH/restore.log" ] && {
echo "Restore log: $DUMP_PATH/restore.log"
cat $DUMP_PATH/restore.log* | grep Error
}
fi
[ -e "$test_log" ] &&
echo "Output file: $test_log"