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

test updates

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee 2020-02-11 23:55:20 -08:00
parent c236395c01
commit eb7e10e86b
8 changed files with 33 additions and 24 deletions

View file

@ -33,10 +33,10 @@ func TestAddpath(t *testing.T) {
rc := new(RunContext)
handler := rc.commandHandler(ctx)
handler("::add-path::/zoo")
handler("::add-path::/zoo\n")
assert.Equal("/zoo:", rc.Env["PATH"])
handler("::add-path::/booo")
handler("::add-path::/booo\n")
assert.Equal("/booo:/zoo:", rc.Env["PATH"])
}