diff options
author | Jim Meyering <meyering@redhat.com> | 2011-05-10 11:37:06 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-05-10 14:52:59 +0200 |
commit | 2c563e8a0ffaf8c02d5b050ee4ac97575bacd8d6 (patch) | |
tree | 535aacd437f46b4119aa265da49d8de96bd3a805 /tests/t1101-busy-partition.sh | |
parent | 311e9a7ec0ed5a2e9df855640e53eba534662376 (diff) | |
download | parted-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-x | tests/t1101-busy-partition.sh | 5 |
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 |