X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=.github%2Fworkflows%2Ftest%2Frun.sh;h=9f397f98fea7e1d4c5d42eba5eb4bb974ac8df7e;hb=7208397398f7e08d741bfa83594a88e5d01b6220;hp=778d5d3ffa04d146477caef8119113c1667ad689;hpb=c6b34b36ca8e4c5832eb930cc79c04979eccdfc4;p=tinc diff --git a/.github/workflows/test/run.sh b/.github/workflows/test/run.sh index 778d5d3f..9f397f98 100644 --- a/.github/workflows/test/run.sh +++ b/.github/workflows/test/run.sh @@ -20,11 +20,12 @@ run_tests() { header "Cleaning up leftovers from previous runs" for name in tinc tincd; do - pkill -TERM -x "$name" || true - pkill -KILL -x "$name" || true + sudo pkill -TERM -x "$name" || true + sudo pkill -KILL -x "$name" || true done - git clean -dfx + sudo git clean -dfx + sudo chown -R build:build . header "Running test flavor $flavor" @@ -44,7 +45,7 @@ run_tests() { code=0 make check -j2 VERBOSE=1 || code=$? - tar -c -z -f "/tmp/tests.$flavor.tar.gz" test/ + sudo tar -c -z -f "/tmp/tests.$flavor.tar.gz" test/ return $code }