projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitHub CI: run most tests as a non-privileged user.
[tinc]
/
.github
/
workflows
/
test
/
run.sh
diff --git
a/.github/workflows/test/run.sh
b/.github/workflows/test/run.sh
index
778d5d3
..
9f397f9
100644
(file)
--- 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
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
done
- git clean -dfx
+ sudo git clean -dfx
+ sudo chown -R build:build .
header "Running test flavor $flavor"
header "Running test flavor $flavor"
@@
-44,7
+45,7
@@
run_tests() {
code=0
make check -j2 VERBOSE=1 || code=$?
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
}
return $code
}