# HG changeset patch # User Augie Fackler # Date 2013-02-09 11:36:19 # Node ID 37479af47bd0aaf73812430f98cbf7341b3746eb # Parent a9e830ecd9fbb0994de1b6e9d93edf1db2697eb0 test-inotify.t: migrate to killdaemons from kill `cat pidfile` diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t +++ b/tests/test-check-code-hg.t @@ -10,15 +10,6 @@ New errors are not allowed. Warnings are $ 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 diff --git a/tests/test-inotify.t b/tests/test-inotify.t --- a/tests/test-inotify.t +++ b/tests/test-inotify.t @@ -32,7 +32,7 @@ and make sure that inotify.pidfile works 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 @@ Now, lets add some build products... 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 @@ Trying to start the server a second time abort: inotify-server: cannot start: socket is already bound [255] - $ kill `cat hg3.pid` + $ "$TESTDIR/killdaemons.py" hg3.pid