mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
17 lines
298 B
Go
17 lines
298 B
Go
package test
|
|
|
|
import "os"
|
|
|
|
const defaultClickHouseVersion = "latest"
|
|
|
|
func GetClickHouseTestVersion() string {
|
|
return GetEnv("CLICKHOUSE_VERSION", defaultClickHouseVersion)
|
|
}
|
|
|
|
func GetEnv(key, fallback string) string {
|
|
if value, ok := os.LookupEnv(key); ok {
|
|
return value
|
|
}
|
|
return fallback
|
|
}
|