mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
Fix zpios-sanity.sh return code
The zpios-sanity.sh script should return failure when any of the individual zpios.sh tests fail. The previous code would always return success suppressing real failures.
This commit is contained in:
parent
e95b3bdcbb
commit
2ea9dc40f8
@ -13,6 +13,7 @@ fi
|
|||||||
|
|
||||||
PROG=zpios-sanity.sh
|
PROG=zpios-sanity.sh
|
||||||
HEADER=
|
HEADER=
|
||||||
|
FAILS=0
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@ -74,6 +75,8 @@ zpios_test() {
|
|||||||
|
|
||||||
${ZPIOS_SH} -f -c ${CONFIG} -t ${TEST} &>${LOG}
|
${ZPIOS_SH} -f -c ${CONFIG} -t ${TEST} &>${LOG}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
FAILS=1
|
||||||
|
|
||||||
if [ ${VERBOSE} ]; then
|
if [ ${VERBOSE} ]; then
|
||||||
printf "FAIL: %-13s\n" ${CONFIG}
|
printf "FAIL: %-13s\n" ${CONFIG}
|
||||||
cat ${LOG}
|
cat ${LOG}
|
||||||
@ -155,4 +158,4 @@ if [ ${DANGEROUS} ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit $FAILS
|
||||||
|
Loading…
Reference in New Issue
Block a user