Unverified Commit b512dfe7 authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

tests: add details when test fails on malformed info (#9042)

parent 3fbdbf50
......@@ -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"
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment