Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b512dfe7
Unverified
Commit
b512dfe7
authored
Jun 03, 2021
by
Oran Agra
Committed by
GitHub
Jun 03, 2021
Browse files
tests: add details when test fails on malformed info (#9042)
parent
3fbdbf50
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/redis-cli.tcl
View file @
b512dfe7
...
...
@@ -109,7 +109,9 @@ start_server {tags {"cli"}} {
test_interactive_cli
"INFO response should be printed raw"
{
set lines
[
split
[
run_command $fd info
]
"
\n
"
]
foreach line $lines
{
assert
[
regexp
{
^$|^#|^
[
^#:
]
+:
}
$line
]
if
{
!
[
regexp
{
^$|^#|^
[
^#:
]
+:
}
$line
]}
{
fail
"Malformed info line:
$line
"
}
}
}
...
...
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