summaryrefslogtreecommitdiff
path: root/tests/t1101-busy-partition.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-10 11:37:06 +0200
committerJim Meyering <meyering@redhat.com>2011-05-10 14:52:59 +0200
commit2c563e8a0ffaf8c02d5b050ee4ac97575bacd8d6 (patch)
tree535aacd437f46b4119aa265da49d8de96bd3a805 /tests/t1101-busy-partition.sh
parent311e9a7ec0ed5a2e9df855640e53eba534662376 (diff)
downloadparted-2c563e8a0ffaf8c02d5b050ee4ac97575bacd8d6.tar.gz
tests: minor fix; add/adjust comments
* tests/t1101-busy-partition.sh: Don't ignore failed comparison. Add a comment.
Diffstat (limited to 'tests/t1101-busy-partition.sh')
-rwxr-xr-xtests/t1101-busy-partition.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/t1101-busy-partition.sh b/tests/t1101-busy-partition.sh
index b8dab44..f7aab83 100755
--- a/tests/t1101-busy-partition.sh
+++ b/tests/t1101-busy-partition.sh
@@ -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