From: Karel Zak Date: Tue, 15 Oct 2019 11:29:13 +0000 (+0200) Subject: tests: (lsblk) gather also udev attributes for new dumps X-Git-Tag: v2.35-rc1~98 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Futil-linux.git;a=commitdiff_plain;h=93c2723772ed22b4950c35a5b918a12dc35bc1ae tests: (lsblk) gather also udev attributes for new dumps References: 7408a5d9c2e0bb20ac0660ead16b787825ef240e Signed-off-by: Karel Zak --- diff --git a/tests/ts/lsblk/mk-input.sh b/tests/ts/lsblk/mk-input.sh index 2f9641f17a..2bbd9e3501 100644 --- a/tests/ts/lsblk/mk-input.sh +++ b/tests/ts/lsblk/mk-input.sh @@ -70,6 +70,21 @@ for x in ${DEVS}; do done +# +# udev a lsblk specific +# +mkdir -p $TS_DUMP/dev +DEVS=$(lsblk --noheadings --output PATH) +for d in $DEVS; do + + # udev + udevadm info --query=property $d > $TS_DUMP/$d + + # lsblk + echo "OWNER=$($TS_CMD_LSBLK --noheadings --nodeps --output OWNER $d)" >> $TS_DUMP/$d + echo "GROUP=$($TS_CMD_LSBLK --noheadings --nodeps --output GROUP $d)" >> $TS_DUMP/$d + echo "MODE=$($TS_CMD_LSBLK --noheadings --nodeps --output MODE $d)" >> $TS_DUMP/$d +done function mk_output { local cols="NAME,${2}"