mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
TEST-74-AUX-UTILS: Skip run0 test if pam snippet is not installed
This commit is contained in:
parent
a2190c22b8
commit
da87c35f35
|
@ -231,6 +231,7 @@ assert_eq "$KVER" "$UNIT_KVER"
|
|||
umount /proc/version
|
||||
rm -f "$TMP_KVER"
|
||||
|
||||
if [[ -e /usr/lib/pam.d/systemd-run0 ]] || [[ -e /etc/pam.d/systemd-run0 ]]; then
|
||||
# Check that invoking the tool under the run0 alias name works
|
||||
run0 ls /
|
||||
assert_eq "$(run0 echo foo)" "foo"
|
||||
|
@ -243,3 +244,4 @@ done
|
|||
# Let's chain a couple of run0 calls together, for fun
|
||||
readarray -t cmdline < <(printf "%.0srun0\n" {0..31})
|
||||
assert_eq "$("${cmdline[@]}" bash -c 'echo $SUDO_USER')" "$USER"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue