diff --git a/.github/workflows/gitwatch.yml b/.github/workflows/gitwatch.yml index 5bab280..3c2d9a8 100644 --- a/.github/workflows/gitwatch.yml +++ b/.github/workflows/gitwatch.yml @@ -90,8 +90,8 @@ jobs: run: | git config --global user.email "test@email.com" git config --global user.name "test user" - #bats -rt tests - bats -rt othertests + bats -rt tests + #bats -rt othertests echo "Finished running tests" - name: Test step diff --git a/tests/startup-shutdown.bash b/tests/startup-shutdown.bash index a699365..54e4014 100755 --- a/tests/startup-shutdown.bash +++ b/tests/startup-shutdown.bash @@ -25,7 +25,9 @@ teardown() { # shellcheck disable=SC2164 cd /tmp - # rm -rf $testdir + # Kill background process + kill -9 %1 + fg # Make sure gitwatch script gets killed if script stopped background # Must kill the entire tree of processes generated