mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: when test fails collect more info
In some case it might be worth to know some more surrouding info when command has crashed. So collect tables and some udev db content in this case.
This commit is contained in:
parent
ba049e203b
commit
64353ff74b
@ -130,6 +130,21 @@ STACKTRACE() {
|
||||
test -z "$LVM_TEST_NODEBUG" -a -f debug.log && {
|
||||
sed -e "s,^,## DEBUG: ,;s,$top_srcdir/\?,," < debug.log
|
||||
test -e strace.log && sed -e "s,^,## STRACE: ,;s,$top_srcdir/\?,," < strace.log
|
||||
echo "========= Info ==========="
|
||||
dmsetup info -c | grep "$PREFIX"
|
||||
echo "========= Active table ==========="
|
||||
dmsetup table | grep "$PREFIX"
|
||||
echo "======== Inactive table =========="
|
||||
dmsetup table --inactive | grep "$PREFIX"
|
||||
echo "======== Status =========="
|
||||
dmsetup status | grep "$PREFIX"
|
||||
echo "======== Tree =========="
|
||||
dmsetup ls --tree
|
||||
echo "======== Recursive list of $DM_DEV_DIR =========="
|
||||
ls -Rla "$DM_DEV_DIR"
|
||||
for i in "/sys/block/dm-* /sys/block/loop*" ; do
|
||||
udevadm info --export-db "$i" || true
|
||||
done
|
||||
}
|
||||
|
||||
test -f SKIP_THIS_TEST && exit 200
|
||||
|
Loading…
Reference in New Issue
Block a user