From 286ea7b717eeaa49059dc2c8fd35e0157c2eec6a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 3 Apr 2017 15:05:27 +0530 Subject: [PATCH 4/6] tests: t6002: Fix expectation of 'rm' on mounted partitions Removing a mounted partition only fails in non-script mode. Signed-off-by: Sunil Mohan Adapa --- tests/t6002-dm-busy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/t6002-dm-busy.sh b/tests/t6002-dm-busy.sh index 723dd30..5dfb9d4 100644 --- a/tests/t6002-dm-busy.sh +++ b/tests/t6002-dm-busy.sh @@ -75,7 +75,7 @@ mount "${dev}p2" "$mount_point" || fail=1 parted -s "$dev" rm 1 > /dev/null 2>&1 || fail=1 # Removal of mounted partition must fail. -parted -s "$dev" rm 2 > /dev/null 2>&1 && fail=1 +parted "$dev" rm 2 < /dev/null > /dev/null 2>&1 && fail=1 parted -m -s "$dev" u s print > out 2>&1 || fail=1 sed "s,^$dev,DEV," out > k; mv k out -- 2.11.0