fix tests

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee
2020-02-13 11:47:38 -08:00
parent e40ab0145f
commit 09773f7c5c
7 changed files with 160 additions and 30 deletions

View File

@@ -2,7 +2,6 @@ package runner
import (
"context"
"fmt"
"regexp"
"strings"
@@ -72,10 +71,7 @@ func (rc *RunContext) setOutput(ctx context.Context, kvPairs map[string]string,
}
func (rc *RunContext) addPath(ctx context.Context, arg string) {
common.Logger(ctx).Infof(" \U00002699 ::add-path:: %s", arg)
if rc.Env == nil {
rc.Env = make(map[string]string)
}
rc.Env["PATH"] = fmt.Sprintf("%s:%s", arg, rc.Env["PATH"])
rc.ExtraPath = append(rc.ExtraPath, arg)
}
func parseKeyValuePairs(kvPairs string) map[string]string {