Skip to content

Commit

Permalink
Merge pull request #448 from liangchenye/runtimeenv
Browse files Browse the repository at this point in the history
use default runtime to test when the runtime env is not set
Ma Shimiao authored Aug 25, 2017
2 parents 9e0e42d + 0f8d01e commit 3db644c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validation/validation_test.go
Original file line number Diff line number Diff line change
@@ -18,7 +18,10 @@ var (
)

func init() {
runtime = os.Getenv("RUNTIME")
runtimeInEnv := os.Getenv("RUNTIME")
if runtimeInEnv != "" {
runtime = runtimeInEnv
}
}

func runtimeValidate(runtime string, g *generate.Generator) error {

0 comments on commit 3db644c

Please sign in to comment.