[master] 28956a650 Make it possible to see how t02015 fails
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Dec 30 17:08:05 UTC 2019
commit 28956a65095ff0e0a2e12983fddbf77689d6c7f1
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Dec 30 18:05:13 2019 +0100
Make it possible to see how t02015 fails
I couldn't reproduce the failure reported by VTEST but hopefully this
will shed some light next time it happens.
Better diff with the --word-diff option.
diff --git a/bin/varnishtest/tests/t02015.vtc b/bin/varnishtest/tests/t02015.vtc
index 3da5c24d4..2d43de79c 100644
--- a/bin/varnishtest/tests/t02015.vtc
+++ b/bin/varnishtest/tests/t02015.vtc
@@ -36,14 +36,12 @@ client c1 {
} -run
} -run
-shell {
+shell -match "^12345$" {
varnishncsa -n ${v1_name} -F '%{VSL:ReqAcct[5]}x' -d \
- -q 'ReqHeader:stream == 1' |
- grep 12345
+ -q 'ReqHeader:stream == 1'
}
-shell {
+shell -match "^1000$" {
varnishncsa -n ${v1_name} -F '%{VSL:ReqAcct[5]}x' -d \
- -q 'ReqHeader:stream == 3' |
- grep 1000
+ -q 'ReqHeader:stream == 3'
}
More information about the varnish-commit
mailing list