test-inotify.t: migrate to killdaemons from kill `cat pidfile`
authorAugie Fackler <raf@durin42.com>
Sat, 09 Feb 2013 05:36:19 -0600
changeset 18595 37479af47bd0
parent 18594 a9e830ecd9fb
child 18596 d8cfe29c6b61
test-inotify.t: migrate to killdaemons from kill `cat pidfile`
tests/test-check-code-hg.t
tests/test-inotify.t
--- a/tests/test-check-code-hg.t	Sat Feb 09 05:35:20 2013 -0600
+++ b/tests/test-check-code-hg.t	Sat Feb 09 05:36:19 2013 -0600
@@ -10,15 +10,6 @@
 
   $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 \
   > || false
-  tests/test-inotify.t:0:
-   >   $ kill `cat ../hg2.pid`
-   don't use kill, use killdaemons.py
-  tests/test-inotify.t:0:
-   >   $ kill `cat hg.pid`
-   don't use kill, use killdaemons.py
-  tests/test-inotify.t:0:
-   >   $ kill `cat hg3.pid`
-   don't use kill, use killdaemons.py
   tests/test-obsolete.t:0:
    >   $ kill `cat hg.pid`
    don't use kill, use killdaemons.py
--- a/tests/test-inotify.t	Sat Feb 09 05:35:20 2013 -0600
+++ b/tests/test-inotify.t	Sat Feb 09 05:36:19 2013 -0600
@@ -32,7 +32,7 @@
 
 make sure that pidfile worked. Output should be silent.
 
-  $ kill `cat ../hg2.pid`
+  $ "$TESTDIR/killdaemons.py" ../hg2.pid
   $ cd ../repo1
 
 inserve
@@ -157,7 +157,7 @@
 build/x & build/y shouldn't appear in "hg st"
 
   $ hg st
-  $ kill `cat hg.pid`
+  $ "$TESTDIR/killdaemons.py" hg.pid
 
   $ cd ..
 
@@ -179,4 +179,4 @@
   abort: inotify-server: cannot start: socket is already bound
   [255]
 
-  $ kill `cat hg3.pid`
+  $ "$TESTDIR/killdaemons.py" hg3.pid