tests: (lsblk) gather also udev attributes for new dumps

References: 7408a5d9c2
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-10-15 13:29:13 +02:00
parent 6f74ede50a
commit 93c2723772
1 changed files with 15 additions and 0 deletions

View 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}"