Skip to content

Commit

Permalink
[CI] Fix memcached test harness
Browse files Browse the repository at this point in the history
For some reason memcached-tool sometimes outputs more than 2 lines,
which still means that there is data in the server, so it's working.

Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
  • Loading branch information
woju committed Oct 14, 2024
1 parent e4e32b0 commit b7c3499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/lib/stage-test-direct.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ stage('test-direct') {
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
test "$(src/scripts/memcached-tool 127.0.0.1 | wc -l)" -ge 2
'''
}
timeout(time: 10, unit: 'MINUTES') {
Expand Down
2 changes: 1 addition & 1 deletion .ci/lib/stage-test-sgx.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ stage('test-sgx') {
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
test "$(src/scripts/memcached-tool 127.0.0.1 | wc -l)" -ge 2
'''
}
timeout(time: 15, unit: 'MINUTES') {
Expand Down

0 comments on commit b7c3499

Please sign in to comment.