[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] tests: t6003-dm-hide: don't hang on exception
From: |
Phillip Susi |
Subject: |
[PATCH 2/9] tests: t6003-dm-hide: don't hang on exception |
Date: |
Sun, 30 Jun 2013 23:11:54 -0400 |
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.
---
tests/t6003-dm-hide.sh | 4 ++--
1 file 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
--
1.8.1.2
- [PATCH 1/9] parted: fix EOF and ctrl-c handling, Phillip Susi, 2013/06/30
- [PATCH 2/9] tests: t6003-dm-hide: don't hang on exception,
Phillip Susi <=
- [PATCH 3/9] gpt: Revert small device commits, Phillip Susi, 2013/06/30
- [PATCH 5/9] libparted: handle logical partitions starting immediately after the EBR, Phillip Susi, 2013/06/30
- [PATCH 4/9] libparted: set dmraid partition uuid, Phillip Susi, 2013/06/30
- [PATCH 9/9] Revert "linux-commit: do not unnecessarily open partition device nodes", Phillip Susi, 2013/06/30
- [PATCH 6/9] libparted: fix gpt end of disk handling, Phillip Susi, 2013/06/30
- [PATCH 7/9] parted: don't reload partition table on every command, Phillip Susi, 2013/06/30
- [PATCH 8/9] libparted: allow some common errors to be ignored, Phillip Susi, 2013/06/30