OSDN Git Service

tests: minor fix; add/adjust comments
authorJim Meyering <meyering@redhat.com>
Tue, 10 May 2011 09:37:06 +0000 (11:37 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 10 May 2011 12:52:59 +0000 (14:52 +0200)
* tests/t1101-busy-partition.sh: Don't ignore failed comparison.
Add a comment.

tests/t1101-busy-partition.sh

index b8dab44..f7aab83 100755 (executable)
@@ -54,12 +54,13 @@ mount_point=$(pwd)/mnt
 mkdir $mount_point || fail=1
 mount "${dev}2" "$mount_point" || fail=1
 
-# removal of unmounted partition, must work.
+# Removal of unmounted partition must succeed.
 parted -s "$dev" rm 1 > out 2>&1 || fail=1
 
+# Removal of mounted partition must fail.
 parted -s "$dev" rm 2 > out 2>&1 && fail=1
 
 # expect error
-compare out exp-error
+compare out exp-error || fail=1
 
 Exit $fail