Log Message:
-----------
* run-tests: delete temp files created in /tmp once done.

* run-tests: allow tests to be skipped if their name contains the
string "OFF".  Makes it easier to skip tests that succeeded or
failed.

Tags:
----
LKML-branch

Modified Files:
--------------
    unionfs/regression-2.0:
        ChangeLog (r1.1.2.22 -> r1.1.2.23)
        run-tests (r1.1.2.10 -> r1.1.2.11)

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/unionfs/unionfs/regression-2.0/Attic/ChangeLog,v
retrieving revision 1.1.2.22
retrieving revision 1.1.2.23
diff -Lregression-2.0/ChangeLog -Lregression-2.0/ChangeLog -u -d -b -B -p 
-r1.1.2.22 -r1.1.2.23
--- regression-2.0/ChangeLog
+++ regression-2.0/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-23  Erez Zadok  <[EMAIL PROTECTED]>
+
+       * run-tests: delete temp files created in /tmp once done.
+
 2007-05-23  Josef "Jeff" Sipek  <[EMAIL PROTECTED]>
 
        * run-tests: Use /dev/.static/dev/loop* as loop devices
@@ -6,6 +10,10 @@
 
 2007-05-23  Erez Zadok  <[EMAIL PROTECTED]>
 
+       * run-tests: allow tests to be skipped if their name contains the
+       string "OFF".  Makes it easier to skip tests that succeeded or
+       failed.
+
        * jffs2.conf: sample jffs2 test configuration.
 
        * jffs2-empty.img: dummy canned jffs2 image, made with mkfs.jffs2.
Index: run-tests
===================================================================
RCS file: /home/cvs/unionfs/unionfs/regression-2.0/Attic/run-tests,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -Lregression-2.0/run-tests -Lregression-2.0/run-tests -u -d -b -B -p 
-r1.1.2.10 -r1.1.2.11
--- regression-2.0/run-tests
+++ regression-2.0/run-tests
@@ -136,6 +136,7 @@ function do_umount
        case "$dev" in
                /dev/loop*|/dev/.static/dev/loop*)
                        runcmd losetup -d $dev
+                       runcmd rm -f /tmp/fs.$$.$branch
                        ;;
                *)
                        ;;
@@ -150,6 +151,16 @@ for t in ${TESTS2RUN}
 do
   test -n "$ECHODEV" && echo $LINEBRK >> $ECHODEV
   echo $LINEBRK
+  # skip tests?
+  case $t in
+      **OFF* )
+         test -n "$OUTPUT_COLOR" && echo -e -n "\033[${OUTPUT_COLOR}m"
+         echo -n "SKIPPING TEST: $t ..."
+         test -n "$OUTPUT_COLOR" && echo -e -n "\033[m"
+         echo
+         exit 0
+         ;;
+  esac
   # find test to run
   test -f $t || t="t-$t.sh"
   if test -f $t
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to