summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-11-06 03:11:58 +0100
committerGuillem Jover <guillem@debian.org>2019-03-24 03:22:23 +0100
commit7964e3c77df6f404dbed47703e0fdd1ddb417552 (patch)
tree3f9c1700d48e0bf3bb9c51e80ae8f88b8bc9797e
parentc9930d56c35246a7473c2b064db5d56ad58cdbbf (diff)
downloaddpkg-7964e3c77df6f404dbed47703e0fdd1ddb417552.tar.gz
t-func: Stop requiring (pseudo-)root
Pass --root-owner-group to dpkg-deb, which was the only command needing (pseudo-)root.
-rw-r--r--debian/changelog2
-rw-r--r--t-func/atlocal.in10
-rw-r--r--t-func/deb-format.at2
-rw-r--r--t-func/deb-split.at2
4 files changed, 4 insertions, 12 deletions
diff --git a/debian/changelog b/debian/changelog
index 1f9a314ee..c23551c08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ dpkg (1.19.6) UNRELEASED; urgency=medium
vendor-specific patch series files.
- Add Breaks on lsb-base due to start-stop-daemon exposing breakage in
the killproc function from /lib/lsb/init-functions. Closes: #923861
+ * Test suite:
+ - Stop requiring (pseudo-)root in the functional test suite.
[ Updated scripts translations ]
* German (Helge Kreutzmann).
diff --git a/t-func/atlocal.in b/t-func/atlocal.in
index 683249c85..4182508a4 100644
--- a/t-func/atlocal.in
+++ b/t-func/atlocal.in
@@ -22,14 +22,4 @@ unset BZIP
unset XZ_OPT
unset XZ_DEFAULTS
-if [ "$(id -u)" = 0 ]; then
- ASROOT=
-elif which fakeroot >/dev/null; then
- ASROOT=fakeroot
-else
- echo "skip: needs to run as root(ish)" >&2
- exit 0
-fi
-export ASROOT
-
TESTDATA="@abs_top_srcdir@/t-func"
diff --git a/t-func/deb-format.at b/t-func/deb-format.at
index cdfc648a8..956100ce9 100644
--- a/t-func/deb-format.at
+++ b/t-func/deb-format.at
@@ -18,7 +18,7 @@ AT_CHECK([
mv pkg-deb-format pkg-templ
chmod -R u+w pkg-templ
find pkg-templ | xargs touch -t 197001010100.00
-$ASROOT dpkg-deb --uniform-compression -Znone -b pkg-templ >/dev/null
+dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null
# Extract the base members
ar x pkg-templ.deb
diff --git a/t-func/deb-split.at b/t-func/deb-split.at
index fe8f676a7..55a123cc0 100644
--- a/t-func/deb-split.at
+++ b/t-func/deb-split.at
@@ -18,7 +18,7 @@ chmod -R u+w pkg-split
# does check print error conditions, so we ignore its error message here.
yes 2>/dev/null | dd of=pkg-split/data-file bs=1024 count=1024 status=none
find pkg-split | xargs touch -t 197001010100.00
-$ASROOT dpkg-deb -b -Znone pkg-split >/dev/null
+dpkg-deb --root-owner-group -Znone -b pkg-split >/dev/null
])
AT_CHECK([