From f911c0a8a3d1003913aaee1290db67d58cce80eb Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 26 Jan 2004 17:42:17 +0000 Subject: [PATCH] Allow sanityN.sh to be run with SANITYLOG so all tests are run and failure is reported at the end. --- lustre/tests/sanityN.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 75dd8c3..b7cf783 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -88,9 +88,15 @@ run_test() { fi } +[ "$SANITYLOG" ] && rm -f $SANITYLOG || true + error () { - log "FAIL: $TESTNAME $@" - exit 1 + log "FAIL: $@" + if [ "$SANITYLOG" ]; then + echo "FAIL: $TESTNAME $@" >> $SANITYLOG + else + exit 1 + fi } pass() { @@ -265,3 +271,4 @@ run_test 13 "test directory page revocation ====================" log "cleanup: ======================================================" rm -rf $DIR1/[df][0-9]* $DIR1/lnk || true echo '=========================== finished ===============================' +[ -f "$SANITYLOG" ] && cat $SANITYLOG && exit 1 || true -- 1.8.3.1