[Agent] [Executor] fix bugs

This commit is contained in:
zeaslity
2023-11-08 14:57:40 +08:00
parent ee1ed8c02b
commit ce108b2f4d
3 changed files with 16 additions and 2 deletions

View File

@@ -34,6 +34,11 @@ var wgetCommand = []string{
"/home/wdd/IdeaProjects/ProjectOctopus/agent-go/executor/script/123",
}
var echoPathCommand = []string{
"echo",
"$PATH",
}
var pipelineCommandFalse = []string{
"ls",
"/etc",
@@ -67,7 +72,7 @@ func TestReadTimeOutput(t *testing.T) {
}
func TestAllCommandExecutor(t *testing.T) {
ok, result := AllCommandExecutor(wgetCommand)
ok, result := AllCommandExecutor(echoPathCommand)
t.Logf("执行结果为 => %#v", ok)
t.Logf("执行日志为 => %#v", result)