tests: fix race condition in 'self-check-dir.tap'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 19 Feb 2012 10:00:45 +0000 (11:00 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 19 Feb 2012 10:03:29 +0000 (11:03 +0100)
* tests/self-check-dir.tap (do_check): Don't fail if "ls -l" fails.

tests/self-check-dir.tap

index 1a5d6b4..a934188 100755 (executable)
@@ -38,7 +38,8 @@ do_check ()
   command_ok_ "$1 [$2]" $SHELL -c "
     $2
     . ./defs || Exit 99
-    pwd; ls -l; # For debugging.
+    # Don't fail if 'ls -l' fails; avoids possible racy spurious failures.
+    pwd; ls -l || : # For debugging.
     $3
   " _self.test
 }