]> diplodocus.org Git - nmh/blobdiff - test/install-mh/test-version-check
Disable test-version-check, again, when not connected to terminal.
[nmh] / test / install-mh / test-version-check
index a336f5d676222e8b8fe017b0dbc41fd40b2cf780..2f26e5af6f1ded3dcfe00e235b096b0ed5cb131f 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