Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
fcd98345
Commit
fcd98345
authored
Apr 20, 2020
by
Guillaume Quintard
Committed by
Dridi Boukelmoune
Apr 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for python before running the test
parent
a9f56f6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
u00015.vtc
bin/varnishtest/tests/u00015.vtc
+4
-5
No files found.
bin/varnishtest/tests/u00015.vtc
View file @
fcd98345
varnishtest "varnishstat -j"
feature cmd "python3 -c 'import json'"
server s1 -repeat 5 {
rxreq
txresp
...
...
@@ -15,8 +17,5 @@ client c1 -repeat 5 {
delay 1
shell { varnishstat -n ${v1_name} -j }
## XXX:
## - use @PYTHON@ discovered via autogen/automake
## - make this test depend on json being available
#shell -expect "1" { varnishstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["version"])' }
#shell -expect "5" { varnishstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["counters"]["MAIN.client_req"]["value"])' }
shell -match "^1$" { varnishstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["version"])' }
shell -match "^5$" { varnishstat -n ${v1_name} -j | python3 -c 'import sys, json; print(json.load(sys.stdin)["counters"]["MAIN.client_req"]["value"])' }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment