mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
tests: metadata-zero-space long vgnames
In the hex dump output, grep for the vgname followed by one space. This allows for test pids with up to seven digits, which are used to contruct the variable vgname used by the test. Otherwise the long vgname wraps to the next line and fails to match in grep.
This commit is contained in:
parent
998e7b1075
commit
55bf692bff
@ -39,9 +39,9 @@ xxd meta.raw > meta.txt
|
||||
# to help debug if the next grep fails
|
||||
ls -l meta.txt
|
||||
head -n 100 meta.txt
|
||||
grep -A4 -B4 1200 meta.txt
|
||||
grep -A4 -B4 '01200:' meta.txt
|
||||
|
||||
grep -B1 "$vg {" meta.txt > meta.vg
|
||||
grep -B1 "$vg " meta.txt > meta.vg
|
||||
|
||||
cat meta.vg
|
||||
|
||||
@ -73,7 +73,7 @@ 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user