[Agent] [Executor] fix bugs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user