From e9815c4ea64137446ef26b9312a01a8015b989c6 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 30 Sep 2008 18:29:10 +0000 Subject: [PATCH] Fix [ a = b ] usage in t-vgsplit-operation: string comparison is '=', not '=='. --- test/t-vgsplit-operation.sh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/t-vgsplit-operation.sh b/test/t-vgsplit-operation.sh index d37aaa5e2..a801f93a7 100755 --- a/test/t-vgsplit-operation.sh +++ b/test/t-vgsplit-operation.sh @@ -34,18 +34,18 @@ do do COMM "vgsplit correctly splits single linear LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev3 $dev4 fi lvcreate -l 4 -n $lv1 $vg1 $dev1 vgchange -an $vg1 - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev1 else vgsplit -n $lv1 $vg1 $vg2 fi vg_validate_pvlv_counts_ $vg1 1 0 0 - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg2 3 1 0 else aux vg_validate_pvlv_counts_ $vg2 1 1 0 @@ -56,17 +56,17 @@ COMM "vgsplit correctly splits single linear LV into $i VG ($j args)" COMM "vgsplit correctly splits single striped LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev3 $dev4 fi lvcreate -l 4 -i 2 -n $lv1 $vg1 $dev1 $dev2 vgchange -an $vg1 - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev1 $dev2 else vgsplit -n $lv1 $vg1 $vg2 fi - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg2 4 1 0 else aux vg_validate_pvlv_counts_ $vg2 2 1 0 @@ -76,17 +76,17 @@ COMM "vgsplit correctly splits single striped LV into $i VG ($j args)" COMM "vgsplit correctly splits mirror LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 $dev3 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev4 fi lvcreate -l 64 -m1 -n $lv1 $vg1 $dev1 $dev2 $dev3 vgchange -an $vg1 - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev1 $dev2 $dev3 else vgsplit -n $lv1 $vg1 $vg2 fi - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg2 4 1 0 else aux vg_validate_pvlv_counts_ $vg2 3 1 0 @@ -96,18 +96,18 @@ COMM "vgsplit correctly splits mirror LV into $i VG ($j args)" COMM "vgsplit correctly splits origin and snapshot LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev3 $dev4 fi lvcreate -l 64 -i 2 -n $lv1 $vg1 $dev1 $dev2 lvcreate -l 4 -i 2 -s -n $lv2 $vg1/$lv1 vgchange -an $vg1 - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev1 $dev2 else vgsplit -n $lv1 $vg1 $vg2 fi - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg2 4 2 1 else aux vg_validate_pvlv_counts_ $vg2 2 2 1 @@ -118,7 +118,7 @@ COMM "vgsplit correctly splits origin and snapshot LV into $i VG ($j args)" COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev3 fi lvcreate -l 64 -i 2 -n $lv1 $vg1 @@ -126,12 +126,12 @@ COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j a vgextend $vg1 $dev4 lvcreate -l 64 -n $lv3 $vg1 $dev4 vgchange -an $vg1 - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev4 else vgsplit -n $lv3 $vg1 $vg2 fi - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg2 2 1 0 aux vg_validate_pvlv_counts_ $vg1 2 2 1 else @@ -146,7 +146,7 @@ COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j a COMM "vgsplit correctly splits linear LV but not mirror LV into $i VG ($j args)" vgcreate $vg1 $dev1 $dev2 $dev3 - if [ $i == existing ]; then + if [ $i = existing ]; then vgcreate $vg2 $dev5 fi lvcreate -l 64 -m1 -n $lv1 $vg1 $dev1 $dev2 $dev3 @@ -156,12 +156,12 @@ COMM "vgsplit correctly splits linear LV but not mirror LV into $i VG ($j args)" vgs lvs pvs - if [ $j == PV ]; then + if [ $j = PV ]; then vgsplit $vg1 $vg2 $dev4 else vgsplit -n $lv2 $vg1 $vg2 fi - if [ $i == existing ]; then + if [ $i = existing ]; then aux vg_validate_pvlv_counts_ $vg1 3 1 0 aux vg_validate_pvlv_counts_ $vg2 2 1 0 else