summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2018-10-17 11:41:01 -0700
committerBrian C. Lane <bcl@redhat.com>2019-08-09 11:54:54 -0700
commit6d215e85706715133cee5351d6008d849affa8a8 (patch)
treeb0a42b8aeaee4dad08dc6abcb0f5dc447d4f19bc /tests
parent477074b6b47eb8caa6170ae195b73b72ee469f23 (diff)
downloadparted-6d215e85706715133cee5351d6008d849affa8a8.tar.gz
Fix syntax-check complaints about tests
Diffstat (limited to 'tests')
-rw-r--r--tests/t1701-rescue-fs.sh2
-rw-r--r--tests/t3310-flags.sh2
-rw-r--r--tests/t6006-dm-512b-sectors.sh2
-rwxr-xr-xtests/t9021-maxima.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/t1701-rescue-fs.sh b/tests/t1701-rescue-fs.sh
index bbf5eac..494fa5b 100644
--- a/tests/t1701-rescue-fs.sh
+++ b/tests/t1701-rescue-fs.sh
@@ -49,5 +49,5 @@ EOF
mv out o2 && sed -e "s, * ,,g;s, $,," \
-e "s,^.*/lt-parted: ,parted: ," o2 > out
echo '' >> exp
-compare out exp || fail=1
+compare exp out || fail=1
Exit $fail
diff --git a/tests/t3310-flags.sh b/tests/t3310-flags.sh
index 0997748..9b30fd9 100644
--- a/tests/t3310-flags.sh
+++ b/tests/t3310-flags.sh
@@ -116,7 +116,7 @@ done
# loop filesystems support no flags. Make sure this doesn't crash
-if [ $ss == 512 ]; then
+if [ $ss = 512 ]; then
# only test on 512 byte ss since mke2fs assumes this on a file
truncate -s 5m img || framework_failure
mke2fs img || framework_failure
diff --git a/tests/t6006-dm-512b-sectors.sh b/tests/t6006-dm-512b-sectors.sh
index c3045af..16ca885 100644
--- a/tests/t6006-dm-512b-sectors.sh
+++ b/tests/t6006-dm-512b-sectors.sh
@@ -39,7 +39,7 @@ cleanup_fn_() {
sleep .2
[ -e "/dev/mapper/$linear_" ] && dmsetup remove $linear_
sleep .2
- [ -e "/dev/mapper/${linear_}1" -o -e "/dev/mapper/$linear_" ] || i=10
+ [ -e "/dev/mapper/${linear_}1" ] || [ -e "/dev/mapper/$linear_" ] || i=10
i=$((i + 1))
done
udevadm settle
diff --git a/tests/t9021-maxima.sh b/tests/t9021-maxima.sh
index 5320a6e..e4288ff 100755
--- a/tests/t9021-maxima.sh
+++ b/tests/t9021-maxima.sh
@@ -48,7 +48,7 @@ max_n_partitions()
# FIXME: add aix when/if it's supported again
for t in msdos gpt dvh sun mac bsd amiga atari loop pc98; do
echo $t
- [ $t == 'atari' ] && [ $ss != 512 ] && continue
+ [ $t = 'atari' ] && [ $ss != 512 ] && continue
rm -f $dev
dd if=/dev/zero of=$dev bs=$ss count=1 seek=10000 || { fail=1; continue; }
parted -s $dev mklabel $t || { fail=1; continue; }