]> The Tcpdump Group git mirrors - tcpdump/commitdiff
run tests with stdin connected to /dev/tty, and do not start tests in subdirectory...
authorMichael Richardson <[email protected]>
Wed, 18 Sep 2019 20:23:02 +0000 (16:23 -0400)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 24 Sep 2019 12:12:09 +0000 (14:12 +0200)
tests/TESTrun.sh

index 234716091852d8791f30d631ad7ad77b8f6efc75..55db40ec93d93cc90a33f580f7a84e493806c070 100755 (executable)
@@ -49,8 +49,8 @@ runSimpleTests()
     # I hate shells with their stupid, useless subshells.
     passed=`cat ${passedfile}`
     failed=`cat ${failedfile}`
-    (cd tests  # run TESTonce in tests directory
-    if ${srcdir}/tests/TESTonce $name ${srcdir}/tests/$input ${srcdir}/tests/$output "$options"
+    (
+    if ${srcdir}/tests/TESTonce $name ${srcdir}/tests/$input ${srcdir}/tests/$output "$options" </dev/tty
     then
       passed=`expr $passed + 1`
       echo $passed >${passedfile}