diff --git a/othertests/startup-shutdown.bash b/othertests/startup-shutdown.bash index 29b2b9b..97f2e82 100755 --- a/othertests/startup-shutdown.bash +++ b/othertests/startup-shutdown.bash @@ -27,6 +27,7 @@ teardown() { # rm -rf $testdir + echo "Process id again $GITWATCH_PID" >&3 # Make sure gitwatch script gets killed if script stopped background # Must kill the entire tree of processes generated pkill -9 -P "$GITWATCH_PID" diff --git a/othertests/tryit.bats b/othertests/tryit.bats index de1b577..30c8c4c 100644 --- a/othertests/tryit.bats +++ b/othertests/tryit.bats @@ -12,7 +12,8 @@ function commit_log_messages_working { #@test "${BATS_TEST_DIRNAME}"/../gitwatch.sh -l 10 "$testdir/local/remote" 3>&- & GITWATCH_PID=$! - echo "Test complete" + echo "Process id $GITWATCH_PID" >&3 + echo "Test complete" >&3 } # # Start up gitwatch with logging, see if works