[openssh-commits] [openssh] 02/02: Run tests with sudo for better coverage.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jan 8 15:56:25 AEDT 2021
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 309b642e1442961b5e57701f095bcd4acd2bfb5f
Author: Darren Tucker <dtucker at dtucker.net>
Date: Fri Jan 8 15:50:41 2021 +1100
Run tests with sudo for better coverage.
---
.github/run_test.sh | 2 ++
.github/workflows/c-cpp.yml | 3 +++
2 files changed, 5 insertions(+)
diff --git a/.github/run_test.sh b/.github/run_test.sh
index 93c3a5e9..5a0e6538 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 83fd02ba..5c5dd6bd 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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list