mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-20 18:09:23 +03:00
Update test function _check_{vg|lv|pv}_field to aid in test debug.
Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
7eb03d6c5c
commit
029d4de4be
@ -63,7 +63,7 @@ check_vg_field_()
|
|||||||
{
|
{
|
||||||
if test "$verbose" = "t"
|
if test "$verbose" = "t"
|
||||||
then
|
then
|
||||||
echo "check_vg_field_ VG: $1 actual: `vgs --noheadings -o $2 $1` expected $3"
|
echo "check_vg_field_ VG=$1, field=$2, actual=`vgs --noheadings -o $2 $1`, expected=$3"
|
||||||
fi
|
fi
|
||||||
return $(test $(vgs --noheadings -o $2 $1) == $3)
|
return $(test $(vgs --noheadings -o $2 $1) == $3)
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@ check_pv_field_()
|
|||||||
{
|
{
|
||||||
if test "$verbose" = "t"
|
if test "$verbose" = "t"
|
||||||
then
|
then
|
||||||
echo "check_pv_field_ PV: $1 actual: `pvs --noheadings -o $2 $1` expected $3"
|
echo "check_pv_field_ PV=$1, field=$2, actual=`pvs --noheadings -o $2 $1`, expected=$3"
|
||||||
fi
|
fi
|
||||||
return $(test $(pvs --noheadings -o $2 $1) == $3)
|
return $(test $(pvs --noheadings -o $2 $1) == $3)
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ check_lv_field_()
|
|||||||
{
|
{
|
||||||
if test "$verbose" = "t"
|
if test "$verbose" = "t"
|
||||||
then
|
then
|
||||||
echo "check_lv_field_ LV: $1 actual: `lvs --noheadings -o $2 $1` expected $3"
|
echo "check_lv_field_ LV=$1, field=$2, actual=`lvs --noheadings -o $2 $1`, expected=$3"
|
||||||
fi
|
fi
|
||||||
return $(test $(lvs --noheadings -o $2 $1) == $3)
|
return $(test $(lvs --noheadings -o $2 $1) == $3)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user