1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

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 e67e06809c
commit 7183c74cd0
6 changed files with 159 additions and 29 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 {