From ab9e5d70bcc3c13d57d917ee35b8626bc8944150 Mon Sep 17 00:00:00 2001 From: "Dave Musicant (home machine)" Date: Sun, 4 Dec 2022 10:44:27 -0600 Subject: [PATCH] tests back in --- .github/workflows/gitwatch.yml | 4 ++-- tests/startup-shutdown.bash | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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