summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard W.M. Jones <[email protected]>2012-09-15 13:21:55 +0100
committerRichard W.M. Jones <[email protected]>2012-09-15 13:21:55 +0100
commit6361810b53be4d5e0513b4f7c11d29cf1d6d3b45 (patch)
treedaab8ae3e54d970c6156fa8c75daa5cf2cea7135 /tests
parentd26f40236196eb2cdf81fa62cbfa28ca89623b28 (diff)
downloadlibguestfs-6361810b53be4d5e0513b4f7c11d29cf1d6d3b45.tar.gz
libguestfs-6361810b53be4d5e0513b4f7c11d29cf1d6d3b45.tar.xz
libguestfs-6361810b53be4d5e0513b4f7c11d29cf1d6d3b45.zip
syntax: Replace test == with = or -eq as appropriate.
Found by 'make syntax-check'.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/md/test-mdadm.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/md/test-mdadm.sh b/tests/md/test-mdadm.sh
index c72cd503..6898a1fe 100755
--- a/tests/md/test-mdadm.sh
+++ b/tests/md/test-mdadm.sh
@@ -114,28 +114,28 @@ for md in `../../fish/guestfish --remote list-md-devices`; do
error=0
case "$name" in
*:r1t1)
- [ "$level" == "raid1" ] || error=1
- [ "$devices" == "2" ] || error=1
+ [ "$level" = "raid1" ] || error=1
+ [ "$devices" -eq 2 ] || error=1
;;
*:r1t2)
- [ "$level" == "raid1" ] || error=1
- [ "$devices" == "2" ] || error=1
+ [ "$level" = "raid1" ] || error=1
+ [ "$devices" -eq 2 ] || error=1
;;
*:r5t1)
- [ "$level" == "raid5" ] || error=1
- [ "$devices" == "4" ] || error=1
+ [ "$level" = "raid5" ] || error=1
+ [ "$devices" -eq 4 ] || error=1
;;
*:r5t2)
- [ "$level" == "raid5" ] || error=1
- [ "$devices" == "3" ] || error=1
+ [ "$level" = "raid5" ] || error=1
+ [ "$devices" -eq 3 ] || error=1
;;
*:r5t3)
- [ "$level" == "raid5" ] || error=1
- [ "$devices" == "2" ] || error=1
+ [ "$level" = "raid5" ] || error=1
+ [ "$devices" -eq 2 ] || error=1
;;
*)
@@ -145,7 +145,7 @@ for md in `../../fish/guestfish --remote list-md-devices`; do
[[ "$uuid" =~ ([0-9a-f]{8}:){3}[0-9a-f]{8} ]] || error=1
[ ! -z "$metadata" ] || error=1
- if [ "$error" == "1" ]; then
+ if [ "$error" -eq 1 ]; then
echo "$0: Unexpected output from md-detail for device $md"
cat md-detail.out
../../fish/guestfish --remote exit
OSZAR »