From 5e4d9b64f5cc78cf4430636e512e0496c89a0871 Mon Sep 17 00:00:00 2001 From: Adrian Vovk Date: Thu, 15 Oct 2026 02:35:32 -0400 Subject: [PATCH] tests: Adapt to changes in varlinkctl's behavior varlinkctl no longer stays silent if an object is empty, and that broke some tests (cherry picked from commit 8904b844a43e21530d82a39bbd51c3d9847e5426) --- test/units/TEST-74-AUX-UTILS.varlinkctl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/units/TEST-74-AUX-UTILS.varlinkctl.sh b/test/units/TEST-74-AUX-UTILS.varlinkctl.sh index bf4d4c66f6..0db9dee929 100755 --- a/test/units/TEST-74-AUX-UTILS.varlinkctl.sh +++ b/test/units/TEST-74-AUX-UTILS.varlinkctl.sh @@ -65,8 +65,8 @@ if command -v userdbctl >/dev/null; then nonmember_reply="$(varlinkctl call --graceful=io.systemd.UserDatabase.NoRecordFound -j \ /run/systemd/userdb/io.systemd.Multiplexer \ io.systemd.UserDatabase.GetMemberships \ - '{"userName":"test-74-nonmember","groupName":"test-74-group","service":"io.systemd.Multiplexer"}')" - test -z "$nonmember_reply" + '{"userName":"test-74-nonmember","groupName":"test-74-group","service":"io.systemd.Multiplexer"}' 2>&1)" + grep "returned expected error: io.systemd.UserDatabase.NoRecordFound" <<<"$nonmember_reply" >/dev/null rm "$membership" if command -v openssl >/dev/null && command -v groupadd >/dev/null; then