main - shellcheck: tests fixes
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5bd99d55b023f1e105bea6033aa57db3987f2ba5 Commit: 5bd99d55b023f1e105bea6033aa57db3987f2ba5 Parent: 130993bab1a6fe40c781bff396e13b56a2b2768b Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Sep 21 16:59:21 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Sep 21 21:03:47 2021 +0200
shellcheck: tests fixes
Correcting some shell problems.
--- test/shell/integrity.sh | 2 +- test/shell/lvcreate-thin-big.sh | 4 ++-- test/shell/pe-align.sh | 2 -- test/shell/pvmove-resume-2.sh | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-)
test/shell/integrity.sh +1 -1
@@ -623,7 +623,7 @@ vgremove -ff $vg # Repeat many of the tests above using bitmap mode _prepare_vg -lvcreate --type raid1 -m1 --raidintegrity y --raidintegritymode bitmap -n $lv1 -l 8 $vg "$dev1 "$dev2" +lvcreate --type raid1 -m1 --raidintegrity y --raidintegritymode bitmap -n $lv1 -l 8 $vg "$dev1" "$dev2" _wait_recalc $vg/${lv1}_rimage_0 _wait_recalc $vg/${lv1}_rimage_1 _wait_recalc $vg/$lv1
test/shell/lvcreate-thin-big.sh +2 -2
@@ -31,11 +31,11 @@ vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}" # Size 0 is not valid invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out -lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 2>&1 >out +lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 >out 2>&1 grep -i "minimal" out # FIXME: metadata allocation fails, if PV doesn't have at least 16GB # i.e. pool metadata device cannot be multisegment -lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>&1 >out +lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 >out 2>&1 grep "maximum" out check lv_field $vg/pool1_tmeta size "2.00m" check lv_field $vg/pool2_tmeta size "<15.88g"
test/shell/pe-align.sh +0 -2
@@ -1,4 +1,3 @@ - #!/usr/bin/env bash # Copyright (C) 2014 Red Hat, Inc. All rights reserved.
@@ -141,4 +140,3 @@ check pv_field "$dev1" ba_start 384.00k --units k check pv_field "$dev1" ba_size 256.00k --units k check pv_field "$dev1" pe_start 640.00k --units k pvremove "$dev1" -
test/shell/pvmove-resume-2.sh +1 -1
@@ -53,7 +53,7 @@ test_pvmove_resume() { # errors, based on the fact pvmove is killed -9 # Restart clvmd kill "$(< LOCAL_CLVMD)" - for i in {1 100} ; do + for i in {1..100} ; do test $i -eq 100 && die "Shutdown of clvmd is too slow." test -e "$CLVMD_PIDFILE" || break sleep .1