Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Mar 1, 2023
1 parent 5266ddb commit fe048ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/run/xctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ var xctestCmd = &cobra.Command{
testEnv := make(map[string]interface{})
if len(env) != 0 {
for _, value := range env {
kv := strings.Split(value, "=")
testEnv[kv[0]] = kv[1]
if strings.Contains(value, "=") {
k := value[0:strings.Index(value, "=")]
v := value[strings.Index(value, "=")+1:]
testEnv[k] = v
}
}
log.Println("Read env:", testEnv)
}
Expand Down

0 comments on commit fe048ab

Please sign in to comment.