Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test_helpers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ func IsTarantoolVersionLess(majorMin uint64, minorMin uint64, patchMin uint64) (
return true, err
}

// It seems that is the --version output sometimes goes to Stderr instead of Stdout.
if len(out) == 0 {
out, err = exec.Command(getTarantoolExec(), "--version").CombinedOutput()
}

if err != nil {
return true, err
}

parsed := tarantoolVersionRegexp.FindStringSubmatch(string(out))

if parsed == nil {
Expand Down
Loading