summaryrefslogtreecommitdiffstats
path: root/debian/tests/common
diff options
context:
space:
mode:
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}"
+
+