]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsblk) gather also udev attributes for new dumps
authorKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2019 11:29:13 +0000 (13:29 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2019 11:29:13 +0000 (13:29 +0200)
References: 7408a5d9c2e0bb20ac0660ead16b787825ef240e
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/lsblk/mk-input.sh

index 2f9641f17a5cb9ed73786fa9ceb6d3f8dd95d93a..2bbd9e35011011f254dd3c8e55a668dae45dacb1 100644 (file)
@@ -70,6 +70,21 @@ for x in ${DEVS}; do
 
 done
 
 
 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}"
 
 function mk_output {
        local cols="NAME,${2}"