Commit 2508d051 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: the post-dump scripts returns zero, if action is not post-dump

All scripts are executed for all actions, so if one of them failed for
any actions, crtools returns with non-zero code.
E.g: ./zdtm.sh -d ns/static/env00
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 29ade094
#!/bin/sh
[ $CRTOOLS_SCRIPT_ACTION == post-dump ] && {
#
# Special code to inform zdtm that we're
# done and should proceed testing treating
# non-zero return as known case.
exit 32
}
[ "$CRTOOLS_SCRIPT_ACTION" == post-dump ] || exit 0
#
# Special code to inform zdtm that we're
# done and should proceed testing treating
# non-zero return as known case.
exit 32
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