From 05db27f07614170309d7a36ab213676bc748ae99 Mon Sep 17 00:00:00 2001 From: Viktor Tsapovskiy Date: Sat, 6 Dec 2025 21:59:35 +0300 Subject: [PATCH] tests: fix flaky TestGracefulShutdown It seems that is the --version output sometimes goes to Stderr instead of Stdout. In IsTarantoolVersionLess() added CombinedOutput (stdout+stderr), if exec.Cmd.Output() returned empty string while executing `tarantool --version`. Closes #503 --- test_helpers/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test_helpers/main.go b/test_helpers/main.go index c80683d94..71e65b7a9 100644 --- a/test_helpers/main.go +++ b/test_helpers/main.go @@ -237,6 +237,16 @@ func IsTarantoolVersionLess(majorMin uint64, minorMin uint64, patchMin uint64) ( out, err := exec.Command(getTarantoolExec(), "--version").Output() + // if err != nil { + // return true, err + // } + + // // It seems that is the --version output sometimes goes to Stderr instead of Stdout. + // // trying to get version again + // if len(out) == 0 { + // out, err = exec.Command(getTarantoolExec(), "--version").Output() + // } + if err != nil { return true, err }