Move printver test to info-command file (#1056)
This fixes: #219 Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
This commit is contained in:
parent
4593dc2f05
commit
56fd97733b
@ -1,4 +1,11 @@
|
||||
start_server {tags {"info and its relative command"}} {
|
||||
test "Extract version and sha1 details from info command and print" {
|
||||
set i [r info]
|
||||
regexp {redis_version:(.*?)\r\n} $i - version
|
||||
regexp {redis_git_sha1:(.*?)\r\n} $i - sha1
|
||||
puts "Testing Valkey version $version ($sha1)"
|
||||
}
|
||||
|
||||
test "info command with at most one sub command" {
|
||||
foreach arg {"" "all" "default" "everything"} {
|
||||
if {$arg == ""} {
|
||||
|
@ -1,6 +0,0 @@
|
||||
start_server {} {
|
||||
set i [r info]
|
||||
regexp {redis_version:(.*?)\r\n} $i - version
|
||||
regexp {redis_git_sha1:(.*?)\r\n} $i - sha1
|
||||
puts "Testing Valkey version $version ($sha1)"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user