]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
testsuite: drop "systemctl is-system-running --wait" invocation
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Jan 2020 12:40:36 +0000 (13:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jan 2020 14:21:27 +0000 (15:21 +0100)
We wait for "basic.target" being reached in the user instance anyway
before allowing the user's session to start, hence doing such a wait is
unnecessary, since that would just mean we'd wait for "default.target"
on top of "basic.target", but we shouldn#t need anything of that...

Hence, let's simplify this, reduce explicit sync points.

test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh

index 837d5dbfa8029f1a7f63e1ce252b68017c7bb62e..fa5da2ec7d7536246524c62c53b9432d9ffd01c1 100755 (executable)
@@ -10,8 +10,6 @@ runas() {
     su "$userid" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID exec "$@"' -- sh "$@"
 }
 
-runas testuser systemctl --user --wait is-system-running
-
 runas testuser systemd-run --user --unit=test-private-users \
     -p PrivateUsers=yes -P echo hello