tests: (lsblk) gather also udev attributes for new dumps
References: 7408a5d9c2
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
6f74ede50a
commit
93c2723772
|
@ -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 {
|
function mk_output {
|
||||||
local cols="NAME,${2}"
|
local cols="NAME,${2}"
|
||||||
|
|
Loading…
Reference in New Issue