1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: use faster awk generator

Shortens log length.
This commit is contained in:
Zdenek Kabelac 2020-09-19 15:57:29 +02:00
parent 8e3e2c74ed
commit f7c58c636d
3 changed files with 9 additions and 11 deletions

View File

@ -32,9 +32,9 @@ aux cleanup_scsi_debug_dev
mnt="mnt"
mkdir -p $mnt
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
awk 'BEGIN { while (z++ < 16384) printf "A" }' > fileA
awk 'BEGIN { while (z++ < 16384) printf "B" }' > fileB
awk 'BEGIN { while (z++ < 16384) printf "C" }' > fileC
# generate random data
dd if=/dev/urandom of=randA bs=512K count=2
@ -338,5 +338,3 @@ lvremove $vg/$lv2
vgremove $vg
aux cleanup_scsi_debug_dev

View File

@ -33,9 +33,9 @@ blockdev --getpbsz "$dev2"
mnt="mnt"
mkdir -p $mnt
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
awk 'BEGIN { while (z++ < 16384) printf "A" }' > fileA
awk 'BEGIN { while (z++ < 16384) printf "B" }' > fileB
awk 'BEGIN { while (z++ < 16384) printf "C" }' > fileC
# generate random data
dd if=/dev/urandom of=randA bs=512K count=2

View File

@ -65,9 +65,9 @@ blockdev --getpbsz "$dev2"
mnt="mnt"
mkdir -p $mnt
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
awk 'BEGIN { while (z++ < 16384) printf "A" }' > fileA
awk 'BEGIN { while (z++ < 16384) printf "B" }' > fileB
awk 'BEGIN { while (z++ < 16384) printf "C" }' > fileC
# generate random data
dd if=/dev/urandom of=randA bs=512K count=2