test-hgweb-raw.t: use killdaemons instead of kill `cat pidfile`
authorAugie Fackler <raf@durin42.com>
Sat, 09 Feb 2013 05:29:10 -0600
changeset 18589 91aac2797c40
parent 18588 3241fc65e3cd
child 18590 104e120416ec
test-hgweb-raw.t: use killdaemons instead of kill `cat pidfile`
tests/test-check-code-hg.t
tests/test-hgweb-raw.t
--- a/tests/test-check-code-hg.t	Sat Feb 09 05:26:16 2013 -0600
+++ b/tests/test-check-code-hg.t	Sat Feb 09 05:29:10 2013 -0600
@@ -10,10 +10,6 @@
 
   $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 \
   > || false
-  tests/test-hgweb-raw.t:0:
-   >   $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done
-   don't use kill, use killdaemons.py
-   don't use kill, use killdaemons.py
   tests/test-inotify-debuginotify.t:0:
    >   $ kill `cat hg.pid`
    don't use kill, use killdaemons.py
--- a/tests/test-hgweb-raw.t	Sat Feb 09 05:26:16 2013 -0600
+++ b/tests/test-hgweb-raw.t	Sat Feb 09 05:29:10 2013 -0600
@@ -19,7 +19,7 @@
   $ cat hg.pid >> $DAEMON_PIDS
   $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt
 
-  $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done
+  $ "$TESTDIR/killdaemons.py" hg.pid
 
   $ cat getoutput.txt
   200 Script output follows
@@ -40,7 +40,7 @@
 
   $ cat hg.pid >> $DAEMON_PIDS
   $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt
-  $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done
+  $ "$TESTDIR/killdaemons.py" hg.pid
 
   $ cat getoutput.txt
   200 Script output follows