diff --git a/test/bash/include.sh b/test/bash/include.sh index 587f489..d96793a 100644 --- a/test/bash/include.sh +++ b/test/bash/include.sh @@ -46,7 +46,4 @@ if [ -z $pm2 ]; then $npm install pm2 -g pm2="$(which pm2)" fi -head "Make sure pm2 is daemonized" -$pm2 ls -echo "" diff --git a/test/bash/interface.sh b/test/bash/interface.sh index 04b95b7..27bc175 100644 --- a/test/bash/interface.sh +++ b/test/bash/interface.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash SRC=$(cd $(dirname "$0"); pwd) -pipeFile="/tmp/pm2-gui" -iniConf="/etc/pm2-gui.ini" -source "${SRC}/include.sh" +pipeFile="$SRC/pm2-gui" +iniConf="$SRC/pm2-gui.ini" +source "$SRC/include.sh" cd $fixtures @@ -61,6 +61,10 @@ function stop(){ success "stopped" } +head "Make sure pm2 is daemonized" +$pm2 ls +echo "" + initConf; stop; @@ -177,6 +181,7 @@ do done exec 6>&- rm $pipeFile +rm $iniConf safeExit