[LTP] TWARN and "ltp-pan reported PASS"
Petr Vorel
pvorel@suse.cz
Tue May 9 14:09:35 CEST 2017
Hi,
our shell scripts wrapping ltp-pan binary report failure when there is any TWARN.
Similar code in these scripts:
runltp
runltplite.sh
testscripts/diskio.sh
testscripts/network.sh
testscripts/runEALtests.sh
if [ $? -eq "0" ]; then
echo ltp-pan reported PASS
else
echo ltp-pan reported FAIL
fi
Does using TWARN always always mean failure? I mean, it's good that ltp-pan returns 4
instead of 0, but wrapper script should return something like:
if [ $? -eq 0 ]; then
echo ltp-pan reported PASS
elif [ $? -eq 4 ]; then
echo ltp-pan reported PASS with warnings
else
echo ltp-pan reported FAIL
fi
Kind regards,
Petr
More information about the ltp
mailing list