]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: make varlink StartTransient checks compatible with jq 1.6
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 2 May 2026 22:18:22 +0000 (23:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 May 2026 13:57:25 +0000 (15:57 +0200)
commit26cba7ffee4aa19e003da704be3362ca2a8be966
treedfd03151a5894899c4c4fcaf15178f259a7b1165
parenta3502284def364235a9c31b016738607a75ddddc
test: make varlink StartTransient checks compatible with jq 1.6

The new "varlinkctl --more StartTransient" subtest pipes a JSON-SEQ
stream of multiple records into "jq --seq -e ...". CentOS 9
ships jq 1.6, where -e only inspects the last input record's output:
when the trailing record (the final reply) doesn't match the
"select()" filter, jq exits non-zero even though earlier records
match, so the test fails.

Use --slurp which collapses the records into an array first and
returns a single bool.

Follow-up for 1cde1cc3bab595fe7b4e2befbfa08a01a172db0f
test/units/TEST-26-SYSTEMCTL.sh