treat exit code 255 as skipped
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: run.sh,v 1.42 2007/06/19 23:47:00 tbox Exp $
|
||||
# $Id: run.sh,v 1.42.332.1 2011/05/01 23:38:23 marka Exp $
|
||||
|
||||
#
|
||||
# Run a system test.
|
||||
@@ -58,14 +58,14 @@ $PERL testsock.pl || {
|
||||
|
||||
|
||||
# Check for test-specific prerequisites.
|
||||
if
|
||||
test ! -f $test/prereq.sh ||
|
||||
( cd $test && sh prereq.sh "$@" )
|
||||
then
|
||||
test ! -f $test/prereq.sh || ( cd $test && sh prereq.sh "$@" )
|
||||
result=$?
|
||||
|
||||
if [ $result -eq 0 ]; then
|
||||
: prereqs ok
|
||||
else
|
||||
echo "I:Prerequisites for $test missing, skipping test." >&2
|
||||
echo "R:UNTESTED" >&2
|
||||
[ $result -eq 255 ] && echo "R:SKIPPED" || echo "R:UNTESTED"
|
||||
echo "E:$test:`date`" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user