diff options
| author | Alexander Barton <alex@barton.de> | 2004-09-06 22:04:06 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-09-06 22:04:06 +0000 |
| commit | 450251f082e0d9b4b1cbdf803e061ca5b5fcf9ab (patch) | |
| tree | 5ee96a149b74b81dd1a15f5827154c1ac86f314a /src/testsuite/wait-tests.sh | |
| parent | ceef0580655e77e7e4dcbe6df180b015716f7e00 (diff) | |
| download | ngircd-450251f082e0d9b4b1cbdf803e061ca5b5fcf9ab.tar.gz ngircd-450251f082e0d9b4b1cbdf803e061ca5b5fcf9ab.zip | |
Fixed echo without newline for systems not understanding "echo -n"; added
new file "functions.inc" for functions usable by all test scripts.
Diffstat (limited to 'src/testsuite/wait-tests.sh')
| -rwxr-xr-x | src/testsuite/wait-tests.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/testsuite/wait-tests.sh b/src/testsuite/wait-tests.sh index 89eb88e2..dcf3aeca 100755 --- a/src/testsuite/wait-tests.sh +++ b/src/testsuite/wait-tests.sh @@ -9,7 +9,7 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: wait-tests.sh,v 1.3 2004/09/04 18:22:42 alex Exp $ +# $Id: wait-tests.sh,v 1.4 2004/09/06 22:04:06 alex Exp $ # [ "$1" -gt 0 ] 2> /dev/null && MAX="$1" || MAX=5 @@ -18,6 +18,9 @@ PS_FLAGS="-f" ps $PS_FLAGS >/dev/null 2>&1 [ $? -ne 0 ] && PS_FLAGS="a" +# read in functions +. ${srcdir}/functions.inc + msg=0 while true; do count=`ps $PS_FLAGS | grep "expect " | wc -l` @@ -26,12 +29,12 @@ while true; do [ $count -le $MAX ] && break if [ $msg -lt 1 ]; then - echo -n " waiting for processes to settle: " + echo_n " waiting for processes to settle: " msg=1 fi # there are still clients connected. Wait ... - echo -n "$count>$MAX " + echo_n "$count>$MAX " sleep 1 done |