[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/17] tests: make t0220 more useful when it fails
From: |
Jim Meyering |
Subject: |
[PATCH 15/17] tests: make t0220 more useful when it fails |
Date: |
Fri, 27 May 2011 17:15:34 +0200 |
From: Jim Meyering <address@hidden>
---
tests/t0220-gpt-msftres.sh | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/tests/t0220-gpt-msftres.sh b/tests/t0220-gpt-msftres.sh
index 300c26f..1247ee0 100755
--- a/tests/t0220-gpt-msftres.sh
+++ b/tests/t0220-gpt-msftres.sh
@@ -54,20 +54,17 @@ compare out /dev/null || fail=1
printf "BYT;\n$dev:${n_sectors}s:file:$ss:$ss:gpt:;\n" > exp
i=1
-rm -f out
for type in $fs_types; do
end=$(expr $start + $part_size - 1)
echo "$i:${start}s:${end}s:${part_size}s::$type:;" >> exp || fail=1
- parted -s $dev mkpart primary $type ${start}s ${end}s >> out 2>&1 || fail=1
- parted -s $dev name $i $type >> out 2>&1 || fail=1
+ parted -s $dev mkpart primary $type ${start}s ${end}s > err 2>&1 || fail=1
+ compare err /dev/null || fail=1
+ parted -s $dev name $i $type > err 2>&1 || fail=1
+ compare err /dev/null || fail=1
start=$(expr $end + 1)
i=$(expr $i + 1)
done
-# expect no output
-compare out /dev/null || fail=1
-
-rm -f out
# print partition table
parted -m -s $dev u s p > out 2>&1 || fail=1
--
1.7.5.2.660.g9f46c
- remove nearly all file-system-aware code from Parted, Jim Meyering, 2011/05/27
- [PATCH 06/17] ntfs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 11/17] xfs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 14/17] maint: update po/POTFILES.in, Jim Meyering, 2011/05/27
- [PATCH 10/17] jfs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 09/17] ufs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 12/17] linux_swap: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 05/17] amiga: build with warning and error options, Jim Meyering, 2011/05/27
- [PATCH 16/17] build: remove configure-time options: --disable-fs, --enable-Werror, Jim Meyering, 2011/05/27
- [PATCH 15/17] tests: make t0220 more useful when it fails,
Jim Meyering <=
- [PATCH 13/17] doc: remove FS-related documentation and other stale bits, Jim Meyering, 2011/05/27
- [PATCH 17/17] doc: reflect removal of FS-related commands, Jim Meyering, 2011/05/27
- [PATCH 01/17] UI: remove all file-system-aware sub-commands, Jim Meyering, 2011/05/27
- [PATCH 08/17] reiserfs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 02/17] remove all top-level FS-op code and the clearfat program, Jim Meyering, 2011/05/27
- [PATCH 04/17] ext2: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 03/17] fat: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27
- [PATCH 07/17] hfs: remove all-but-probe FS-related code, Jim Meyering, 2011/05/27