Skip to contentSkip to conversation

master - tests: also use sed to shorten log output

PATCH Zdenek Kabelac 1 participant 1 message Sep 17, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a4137412bf64843578fd116f443d6586a0cffbed
Commit:        a4137412bf64843578fd116f443d6586a0cffbed
Parent:        8d40859e29c03c867c788c4927076b4192192214
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Sep 18 00:31:59 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Sep 18 00:31:59 2020 +0200

tests: also use sed to shorten log output

---
 test/shell/integrity-dmeventd.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
test/shell/integrity-dmeventd.sh +3 -2
index 0a081599f..a8c41803e 100644
@@ -23,8 +23,9 @@ mkdir -p $mnt
 aux prepare_devs 6 64
 
 printf "%0.sA" {1..16384} >> fileA
-printf "%0.sB" {1..16384} >> fileB
-printf "%0.sC" {1..16384} >> fileC
+# instead of long debug 'printf' log use 'sed' and just replace A->B|C
+sed -e 's,A,B,g' fileA > fileB
+sed -e 's,A,C,g' fileA > fileC
 
 # generate random data
 dd if=/dev/urandom of=randA bs=512K count=2