summaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-12-31 02:36:28 +0000
committerColin Watson <cjwatson@debian.org>2016-12-31 02:36:28 +0000
commit529a0d03ec7a9c7dc3a7b13773563ab30049612d (patch)
treeb264082c42a63f51e1c10c76a7f65f687eb21b25 /debian/tests
parent7a2c3e36d11fcd6f97953c636e2ddf14dd73fc5d (diff)
Tweak regression test setup to cope with the case where some of the source directory is unreadable by the openssh-tests user.
Diffstat (limited to 'debian/tests')
-rwxr-xr-xdebian/tests/regress4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/tests/regress b/debian/tests/regress
index f3352e3d2..1576da97b 100755
--- a/debian/tests/regress
+++ b/debian/tests/regress
@@ -19,14 +19,14 @@ openssh-tests ALL = (ALL:ALL) NOPASSWD: ALL
19EOF 19EOF
20 chmod 440 /etc/sudoers.d/openssh-tests 20 chmod 440 /etc/sudoers.d/openssh-tests
21 mkdir -p "$TMP" 21 mkdir -p "$TMP"
22 chown openssh-tests:openssh-tests "$TMP" 22 cp -a . "$TMP/tree"
23 chown -R openssh-tests:openssh-tests "$TMP"
23 sudo -u openssh-tests env TMP="$TMP" "$0" "$@" 24 sudo -u openssh-tests env TMP="$TMP" "$0" "$@"
24 exit "$?" 25 exit "$?"
25fi 26fi
26 27
27# Don't use "make tests"; we want to test the installed version. 28# Don't use "make tests"; we want to test the installed version.
28 29
29cp -a . "$TMP/tree"
30cd "$TMP/tree" 30cd "$TMP/tree"
31 31
32# We aren't actually going to use most of this build, but we need a basic 32# We aren't actually going to use most of this build, but we need a basic