Added feature to allow remaining tests to be written to file
authorAllan Randall <allanr@sgi.com>
Thu, 15 Jun 2006 04:03:28 +0000 (04:03 +0000)
committerAllan Randall <allanr@sgi.com>
Thu, 15 Jun 2006 04:03:28 +0000 (04:03 +0000)
Merge of master-melb:xfs-cmds:26253a by kenmcd.

  Added feature to allow remaining tests to be written to file

check

diff --git a/check b/check
index d18b7675e7d6b2f7c4a1baf0e8d4c6e3b0ac779b..c44b5290347ecbc2b67901244d6ee7c812b60b34 100755 (executable)
--- a/check
+++ b/check
@@ -167,10 +167,18 @@ fi
 seq="check"
 _check_test_fs
 
+[ -n "$TESTS_REMAINING_LOG" ] && echo $list > $TESTS_REMAINING_LOG
+
 for seq in $list
 do
     err=false
     echo -n "$seq"
+    if [ -n "$TESTS_REMAINING_LOG" ] ; then
+        sed -e "s/$seq//" -e 's/  / /' -e 's/^ *//' $TESTS_REMAINING_LOG > $TESTS_REMAINING_LOG.tmp
+        mv $TESTS_REMAINING_LOG.tmp $TESTS_REMAINING_LOG
+        sync
+    fi
+
     if $showme
     then
        echo