From: Darren Tucker Date: Fri, 8 Jan 2021 04:50:41 +0000 (+1100) Subject: Run tests with sudo for better coverage. X-Git-Tag: V_8_5_P1~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=309b642e1442961b5e57701f095bcd4acd2bfb5f;p=thirdparty%2Fopenssh-portable.git Run tests with sudo for better coverage. --- diff --git a/.github/run_test.sh b/.github/run_test.sh index 93c3a5e9e..5a0e65385 100755 --- a/.github/run_test.sh +++ b/.github/run_test.sh @@ -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 diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 83fd02ba2..5c5dd6bd8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -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