mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 07:10:28 +00:00
integration test
This commit is contained in:
12 files changed
+94
-73
No files matched your search
@@ -60,3 +60,16 @@ func TestStopCommands(t *testing.T) {
|
||||
handler("::set-env name=x::abcd\n")
|
||||
assert.Equal("abcd", rc.Env["x"])
|
||||
}
|
||||
|
||||
func TestAddpathADO(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
ctx := context.Background()
|
||||
rc := new(RunContext)
|
||||
handler := rc.commandHandler(ctx)
|
||||
|
||||
handler("##[add-path]/zoo\n")
|
||||
assert.Equal("/zoo", rc.ExtraPath[0])
|
||||
|
||||
handler("##[add-path]/boo\n")
|
||||
assert.Equal("/boo", rc.ExtraPath[1])
|
||||
}
|
||||
Reference in new issue
Block a user