summaryrefslogtreecommitdiffstats
path: root/debian/tests/common
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 05:56:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 05:56:05 +0000
commit87d04d939bf6a6b5bf39d47ce9af84d536662b27 (patch)
tree9b5bd895adcf2aa1678848c8bb65571318b769ad /debian/tests/common
parentReleasing progress-linux version 1.8.27-1+deb10u5progress5u1. (diff)
downloadsudo-87d04d939bf6a6b5bf39d47ce9af84d536662b27.tar.xz
sudo-87d04d939bf6a6b5bf39d47ce9af84d536662b27.zip
Merging debian version 1.8.27-1+deb10u6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/common')
-rwxr-xr-xdebian/tests/common/asuser7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/tests/common/asuser b/debian/tests/common/asuser
new file mode 100755
index 0000000..291b40a
--- /dev/null
+++ b/debian/tests/common/asuser
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+echo "${1:-}" | sudo -u "${2:-root}" --stdin id -u > "${3:-stdout}" 2> "${4:-stderr}"
+
+