summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Susi <psusi@ubuntu.com>2013-01-05 14:59:03 -0500
committerPhillip Susi <psusi@ubuntu.com>2013-11-23 16:43:43 -0500
commita1fc166a0791557a54d91e034dfefd994b11622b (patch)
tree24ce8e38baa188d959f4778892ff521a3744b21f
parent8ae195863e7d6950cfcc7a067f52e46f295655a7 (diff)
downloadparted-a1fc166a0791557a54d91e034dfefd994b11622b.tar.gz
tests: t6003-dm-hide: don't hang on exception
If the parted -l found any exceptions, it would print the prompt, which was redirected to the log, then hang waiting for input, which never came. Use script mode to disable the prompts.
-rw-r--r--tests/t6003-dm-hide.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t6003-dm-hide.sh b/tests/t6003-dm-hide.sh
index fce1f31..8618adc 100644
--- a/tests/t6003-dm-hide.sh
+++ b/tests/t6003-dm-hide.sh
@@ -47,7 +47,7 @@ echo 0 2048 linear $d1 0 | dmsetup create $linear_ || fail=1
dev=/dev/mapper/$linear_
# No "DMRAID-" UUID prefix, hence the device should not show up.
-parted -l >out 2>&1
+parted -s -l >out 2>&1
grep "^Disk $dev:" out && fail=1
# Unless we perform both dmsetup-remove *and* losetup -d,
@@ -61,7 +61,7 @@ d1=$(loop_setup_ "$f1") || fail=1
echo 0 2048 linear $d1 0 | dmsetup create $linear_ -u "DMRAID-fake-$$" || fail=1
# Thus, the device should now show up.
-parted -l >out 2>&1
+parted -s -l >out 2>&1
grep "^Disk $dev:" out || fail=1
Exit $fail