Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame^] | 1 | parted: change check for device-manager |
| 2 | |
| 3 | Other ptests use this method. |
| 4 | |
| 5 | Upstream-Status: Submitted [bug-parted@gnu.org] |
| 6 | |
| 7 | Signed-off-by: Joe Slater <joe.slater@windriver.com> |
| 8 | |
| 9 | |
| 10 | --- a/tests/t6001-psep.sh |
| 11 | +++ b/tests/t6001-psep.sh |
| 12 | @@ -19,7 +19,9 @@ |
| 13 | . "${srcdir=.}/init.sh"; path_prepend_ ../parted |
| 14 | |
| 15 | require_root_ |
| 16 | -(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" |
| 17 | + |
| 18 | +test "x$ENABLE_DEVICE_MAPPER" = xyes \ |
| 19 | + || skip_ "no device-mapper support" |
| 20 | |
| 21 | # Device maps names - should be random to not conflict with existing ones on |
| 22 | # the system |