Run tests with sudo for better coverage.

This commit is contained in:
Darren Tucker 2021-01-08 15:50:41 +11:00
parent c336644351
commit 309b642e14
2 changed files with 5 additions and 0 deletions

2
.github/run_test.sh vendored
View File

@ -5,6 +5,8 @@ TARGETS=$@
TEST_TARGET="tests"
LTESTS="" # all tests by default
[ -z "${SUDO}" ] || ${SUDO} mkdir -p /var/empty
set -ex
for TARGET in $TARGETS; do

View File

@ -30,6 +30,7 @@ jobs:
- name: make tests
run: ./.github/run_test.sh ${{ matrix.configs }}
env:
SUDO: sudo
TEST_SSH_UNSAFE_PERMISSIONS: 1
@ -62,6 +63,7 @@ jobs:
- name: make tests
run: ./.github/run_test.sh ${{ matrix.configs }}
env:
SUDO: sudo
TEST_SSH_UNSAFE_PERMISSIONS: 1
@ -88,4 +90,5 @@ jobs:
- name: make tests
run: ./.github/run_test.sh ${{ matrix.configs }}
env:
SUDO: sudo
TEST_SSH_UNSAFE_PERMISSIONS: 1