]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - tests/ts/lsblk/mk-input.sh
tests: (lsblk) gather also udev attributes for new dumps
[thirdparty/util-linux.git] / tests / ts / lsblk / mk-input.sh
index 2f9641f17a5cb9ed73786fa9ceb6d3f8dd95d93a..2bbd9e35011011f254dd3c8e55a668dae45dacb1 100644 (file)
@@ -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}"