mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
tree-wide: replace tab with space, adjust missing or duplicated space
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
332bce5bd7
commit
f866ff3df8
@@ -595,7 +595,7 @@ testcase_list_users_sessions_seats() {
|
||||
systemd-run --quiet --service-type=notify --unit=test-linger-signal-wait --pty \
|
||||
-p Environment=SYSTEMD_LOG_LEVEL=debug \
|
||||
-p ExecStartPost="loginctl enable-linger logind-test-user" \
|
||||
busctl --timeout=30 wait "/org/freedesktop/login1/user/_$(id -ru logind-test-user)" org.freedesktop.DBus.Properties PropertiesChanged | grep -qF '"Linger" b true'
|
||||
busctl --timeout=30 wait "/org/freedesktop/login1/user/_$(id -ru logind-test-user)" org.freedesktop.DBus.Properties PropertiesChanged | grep -qF '"Linger" b true'
|
||||
assert_eq "$(loginctl list-users --no-legend | awk '$2 == "logind-test-user" { print $3 }')" yes
|
||||
|
||||
for s in $(loginctl list-sessions --no-legend | grep tty | awk '$3 == "logind-test-user" { print $1 }'); do
|
||||
@@ -797,7 +797,7 @@ testcase_restart() {
|
||||
|
||||
for c in $classes; do
|
||||
unit="user-sleeper-$c.service"
|
||||
systemd-run --service-type=notify run0 --setenv XDG_SESSION_CLASS="$c" -u logind-test-user --unit="$unit" sleep infinity
|
||||
systemd-run --service-type=notify run0 --setenv XDG_SESSION_CLASS="$c" -u logind-test-user --unit="$unit" sleep infinity
|
||||
done
|
||||
|
||||
systemctl restart systemd-logind
|
||||
|
||||
@@ -146,7 +146,7 @@ run_and_check_services() {
|
||||
# jq --slurp --raw-output \
|
||||
# ".[].browser_service_data[] | select(.updateFlag == true and .type == \"$service_type\" and .family == 10).name" "$out_file" | sort | tee "$tmp_file"
|
||||
grep -o '"name":"[^"]*"' "$out_file" | sed 's/"name":"//;s/"//g' | sort | tee "$tmp_file"
|
||||
# ...and compare them with what we expect
|
||||
# ...and compare them with what we expect
|
||||
if "$check_func" "$service_id" "$tmp_file"; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user