Skip to content

Commit e2c1059

Browse files
committed
Modify coverage.sh to run kcov as non-root user.
1 parent c00eb92 commit e2c1059

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gentoo/coverage.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22

3-
kcov --bash-dont-parse-binary-dir \
3+
useradd -m -G users -s /bin/bash testrunner
4+
5+
su - testrunner -c "kcov --bash-dont-parse-binary-dir \
46
--include-path=. \
57
/var/tmp/coverage \
6-
bats -t tests
8+
bats -t tests"

0 commit comments

Comments
 (0)