# HG changeset patch # User Augie Fackler # Date 2013-02-09 11:29:10 # Node ID 91aac2797c40f076d320cbcd4469bd165d389aa6 # Parent 3241fc65e3cdfbede608d0a536523e496ece320b test-hgweb-raw.t: use killdaemons instead of 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,10 +10,6 @@ New errors are not allowed. Warnings are $ 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 diff --git a/tests/test-hgweb-raw.t b/tests/test-hgweb-raw.t --- a/tests/test-hgweb-raw.t +++ b/tests/test-hgweb-raw.t @@ -19,7 +19,7 @@ Test raw style of hgweb $ 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 @@ Test raw style of hgweb $ 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