public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] TWARN and "ltp-pan reported PASS"
@ 2017-05-09 12:09 Petr Vorel
  2017-05-10  9:04 ` Cyril Hrubis
  0 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2017-05-09 12:09 UTC (permalink / raw)
  To: ltp

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-18 11:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 12:09 [LTP] TWARN and "ltp-pan reported PASS" Petr Vorel
2017-05-10  9:04 ` Cyril Hrubis
2017-05-10 10:15   ` Petr Vorel
2017-05-17 13:41     ` Cyril Hrubis
2017-05-18 10:42       ` Petr Vorel
2017-05-18 11:15         ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox