]> diplodocus.org Git - nmh/commitdiff
Disable test-version-check, again, when not connected to terminal.
authorDavid Levine <levinedl@acm.org>
Thu, 13 Oct 2016 23:12:59 +0000 (19:12 -0400)
committerDavid Levine <levinedl@acm.org>
Thu, 13 Oct 2016 23:12:59 +0000 (19:12 -0400)
I can't otherwise explain why it fails on the ubuntu buildbot.

test/install-mh/test-version-check

index a336f5d..2f26e5a 100755 (executable)
@@ -17,11 +17,9 @@ fi
 
 setup_test
 
-# ???? debug
-test -t 0  &&  echo stdin connected  ||  echo stdin not connected
-test -t 1  &&  echo stdout connected  ||  echo stdout not connected
-test -t 2  &&  echo stderr connected  ||  echo stderr not connected
-# ???? debug
+if test ! -t 0 || test ! -t 1 || test ! -t 2; then
+    test_skip 'must be connected to terminal'
+fi
 
 require_prog script
 #### Use minimal arguments to script(1), i.e., just the file in