summaryrefslogtreecommitdiffabout
path: root/tests/control.at
Unidiff
Diffstat (limited to 'tests/control.at') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/control.at11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/control.at b/tests/control.at
index 8814b30..3d0c218 100644
--- a/tests/control.at
+++ b/tests/control.at
@@ -23,13 +23,14 @@ PIES_CONTROL_INIT
23pies --config-file control.conf 23pies --config-file control.conf
24 24
25sleep 1 25sleep 1
26if test -f $pidfile; then 26PIESCTL="piesctl --no-netrc --url '$PIES_CTLSOCK'"
27 pid0=`head -1 $pidfile` 27if test -f $PIES_PIDFILE; then
28 pid1=`piesctl --url "$ctlsock" id PID|sed 's/^PID: //'` 28 pid0=`head -1 $PIES_PIDFILE`
29 pid1=`$PIESCTL id PID|sed 's/^PID: //'`
29 if test "$pid1" = "$pid0"; then 30 if test "$pid1" = "$pid0"; then
30 if piesctl --url "$ctlsock" shutdown; then 31 if $PIESCTL shutdown; then
31 sleep 1 32 sleep 1
32 if test -f $pidfile; then 33 if test -f $PIES_PIDFILE; then
33 PIES_XFAIL_MSG([pies does not respond to control commands]) 34 PIES_XFAIL_MSG([pies does not respond to control commands])
34 kill -9 $pid0 35 kill -9 $pid0
35 exit 1 36 exit 1

Return to:

Send suggestions and report system problems to the System administrator.