Commit 234b5883 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: show errors if a test failed

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 292d0adf
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment