Reacting on xorriso ifailure in pipe test of releng/auto_isocontent
This commit is contained in:
@ -119,6 +119,20 @@ check_for_xorriso() {
|
||||
}
|
||||
|
||||
|
||||
#############################################
|
||||
|
||||
# To catch the exit value of a command in a pipe
|
||||
return_value_file="$GEN_DATA_DIR"/wrapper_"$$"_return_value
|
||||
return_wrapper()
|
||||
{
|
||||
cmd="$1"
|
||||
shift 1
|
||||
"$cmd" "$@"
|
||||
RET="$?"
|
||||
echo "$RET" >"$return_value_file"
|
||||
return "$RET"
|
||||
}
|
||||
|
||||
#############################################
|
||||
|
||||
next_is=
|
||||
|
Reference in New Issue
Block a user