diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-10-28 13:26:01 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-29 14:39:59 +0100 |
commit | ebc64de22f84f62dc48e5d16ec5d12ca82222b74 (patch) | |
tree | cef0d33697eaa9f12d832a79dd9592056e19af62 /test | |
parent | mkosi: Move copying packages to the output directory to the postinst script (diff) | |
download | systemd-ebc64de22f84f62dc48e5d16ec5d12ca82222b74.tar.xz systemd-ebc64de22f84f62dc48e5d16ec5d12ca82222b74.zip |
udevadm: automatically anable JSON-SEQ in case JSON is used for "udevadm info -a"
We are going to output a series of JSON objects, hence let's
automatically enable JSON-SEQ output mode, as we usually do.
"jq --seq" supports this natively, hence this should not really restrict
us.
Follow-up for: 67ea8a4c0edef33b1775536bc81d5de2c8ac4d88
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/TEST-17-UDEV.10.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/TEST-17-UDEV.10.sh b/test/units/TEST-17-UDEV.10.sh index 1808e1975b..7ca05f5287 100755 --- a/test/units/TEST-17-UDEV.10.sh +++ b/test/units/TEST-17-UDEV.10.sh @@ -71,8 +71,8 @@ udevadm info --query symlink --root /sys/class/net/$netdev (! udevadm info -q hello -r /sys/class/net/$netdev) udevadm info -a /sys/class/net/$netdev udevadm info -a --json=off /sys/class/net/$netdev -udevadm info -a --json=pretty /sys/class/net/$netdev | jq . >/dev/null -udevadm info -a --json=short /sys/class/net/$netdev | jq . >/dev/null +udevadm info -a --json=pretty /sys/class/net/$netdev | jq --seq . >/dev/null +udevadm info -a --json=short /sys/class/net/$netdev | jq --seq . >/dev/null udevadm info -t >/dev/null udevadm info --tree /sys/class/net/$netdev udevadm info -x /sys/class/net/$netdev |