X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.github%2Fworkflows%2Ftest%2Frun.sh;h=9f397f98fea7e1d4c5d42eba5eb4bb974ac8df7e;hb=bf7abd5a059d27dc544b435b67f7f1d5419d318b;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 }