[master] e2a5eb77f Fix test for wc(1) commands emitting leading whitespace.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Aug 19 11:53:06 UTC 2019
commit e2a5eb77f66802ae63440892049a541baf88ca2c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Aug 19 11:52:15 2019 +0000
Fix test for wc(1) commands emitting leading whitespace.
Also fix -e -> -E I overlooked.
diff --git a/bin/varnishtest/tests/e00033.vtc b/bin/varnishtest/tests/e00033.vtc
index 73246abc3..2bcf84418 100644
--- a/bin/varnishtest/tests/e00033.vtc
+++ b/bin/varnishtest/tests/e00033.vtc
@@ -27,6 +27,5 @@ client c1 {
rxresp
} -run
-shell -match "^0$" "varnishncsa -n ${v1_name} -d -q \"requrl ~ '/esi'\" | wc -l"
-shell -match "^1$" "varnishncsa -n ${v1_name} -d -q \"requrl ~ '/esi'\" -e | wc -l"
-
+shell -match "^ *0$" {varnishncsa -n ${v1_name} -d -q "requrl ~ '/esi'" | wc -l}
+shell -match "^ *1$" {varnishncsa -n ${v1_name} -d -q "requrl ~ '/esi'" -E | wc -l}
More information about the varnish-commit
mailing list