File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,20 @@ func atoiUint64(str string) (uint64, error) {
120
120
return res , nil
121
121
}
122
122
123
+ func getTarantoolExec () string {
124
+ if tar_bin := os .Getenv ("TARANTOOL_BIN" ); tar_bin != "" {
125
+ return tar_bin
126
+ }
127
+ return "tarantool"
128
+ }
129
+
123
130
// IsTarantoolVersionLess checks if tarantool version is less
124
131
// than passed <major.minor.patch>. Returns error if failed
125
132
// to extract version.
126
133
func IsTarantoolVersionLess (majorMin uint64 , minorMin uint64 , patchMin uint64 ) (bool , error ) {
127
134
var major , minor , patch uint64
128
135
129
- out , err := exec .Command ("tarantool" , "--version" ).Output ()
136
+ out , err := exec .Command (getTarantoolExec () , "--version" ).Output ()
130
137
131
138
if err != nil {
132
139
return true , err
@@ -203,7 +210,7 @@ func StartTarantool(startOpts StartOpts) (TarantoolInstance, error) {
203
210
}
204
211
}
205
212
206
- inst .Cmd = exec .Command ("tarantool" , startOpts .InitScript )
213
+ inst .Cmd = exec .Command (getTarantoolExec () , startOpts .InitScript )
207
214
208
215
inst .Cmd .Env = append (
209
216
os .Environ (),
You can’t perform that action at this time.
0 commit comments