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:
Shivshankar 2024-09-19 22:18:19 -04:00 committed by GitHub
parent 4593dc2f05
commit 56fd97733b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -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 == ""} {

View File

@ -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)"
}