From 8263e62b00959c2bef18dff7821b242aefd5547f Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Thu, 24 Oct 2019 13:55:23 +0200 Subject: [PATCH] test: Fix metadata-zero-space with long VG names --- test/shell/metadata-zero-space.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/shell/metadata-zero-space.sh b/test/shell/metadata-zero-space.sh index f04de48d7..a7efdead0 100644 --- a/test/shell/metadata-zero-space.sh +++ b/test/shell/metadata-zero-space.sh @@ -41,11 +41,13 @@ ls -l meta.txt head -n 100 meta.txt grep -A4 -B4 '01200:' meta.txt -grep -B1 "$vg " meta.txt > meta.vg +_vg="$vg " +_vg="${_vg:0:16}" +grep -B1 "$_vg" meta.txt > meta.vg cat meta.vg -grep -v $vg meta.vg > meta.zeros +grep -v "$_vg" meta.vg > meta.zeros cat meta.zeros @@ -73,11 +75,11 @@ dd if="$dev1" of=meta.raw bs=1M seek=15 count=1 xxd meta.raw > meta.txt -grep -B1 "$vg " meta.txt > meta.vg +grep -B1 "$_vg" meta.txt > meta.vg cat meta.vg -grep -v $vg meta.vg > meta.zeros +grep -v "$_vg" meta.vg > meta.zeros cat meta.zeros -- 2.43.5