]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Redirect stdin from /dev/null when running a test
authorMartin Schwenke <martin@meltin.net>
Thu, 30 Jan 2020 02:37:00 +0000 (13:37 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 10 Feb 2020 04:07:38 +0000 (04:07 +0000)
Otherwise, if the test is run via ssh it will "unexpectedly" find
itself at the other end of a pipe.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/run_tests.sh

index d7c33f1865adf0a7220f8f1bfe5294a57ce619f9..2a5e4bbf996ddc7aec9045022cdd0f47e3cec317 100755 (executable)
@@ -129,7 +129,7 @@ ctdb_test_run ()
        start_time=$(date '+%s')
 
        if [ -x "$f" ] ; then
-               timeout "$test_time_limit" "$f" | show_progress
+               timeout "$test_time_limit" "$f" </dev/null | show_progress
                status=$?
        else
                echo "TEST IS NOT EXECUTABLE"