[parted-devel] [PATCH 2/2] tests: fix t1700

Phillip Susi psusi at ubuntu.com
Fri Apr 18 17:01:42 UTC 2014


bb181a7e: "tests: Use force for xfs in t1700 and a larger file" caused
the previous filesystem signatures to be left in the image file
causing mkfs.nilfs2 to complain that there is already an xfs filesystem
there, and hang the test suite waiting for an answer to proceed or not.
Remove the file between filesystems so it is recreated cleanly again.
---
 tests/t1700-probe-fs.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh
index bf6ad9c..2ba2f95 100755
--- a/tests/t1700-probe-fs.sh
+++ b/tests/t1700-probe-fs.sh
@@ -39,6 +39,7 @@ for type in ext2 ext3 ext4 btrfs xfs nilfs2; do
   # probe the $type file system
   parted -m -s $dev u s print >out 2>&1 || fail=1
   grep '^1:.*:'$type'::;$' out || { cat out; fail=1; }
+  rm $dev
 
 done
 
-- 
1.9.1




More information about the parted-devel mailing list