diff options
Diffstat (limited to 'tests/control.at')
-rw-r--r-- | tests/control.at | 11 |
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 @@ -24,11 +24,12 @@ pies --config-file control.conf sleep 1 -if test -f $pidfile; then - pid0=`head -1 $pidfile` - pid1=`piesctl --url "$ctlsock" id PID|sed 's/^PID: //'` +PIESCTL="piesctl --no-netrc --url '$PIES_CTLSOCK'" +if test -f $PIES_PIDFILE; then + pid0=`head -1 $PIES_PIDFILE` + pid1=`$PIESCTL id PID|sed 's/^PID: //'` if test "$pid1" = "$pid0"; then - if piesctl --url "$ctlsock" shutdown; then + if $PIESCTL shutdown; then sleep 1 - if test -f $pidfile; then + if test -f $PIES_PIDFILE; then PIES_XFAIL_MSG([pies does not respond to control commands]) kill -9 $pid0 |