[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

@@ -2,6 +2,7 @@ package executor
import (
"github.com/magiconair/properties/assert"
"strconv"
"testing"
)
@@ -57,3 +58,11 @@ func TestBasicSystemdUp(t *testing.T) {
t.Logf("result ok is %v resultLog is %v", ok, resultLog)
}
func TestBasicCommandExists(t *testing.T) {
exists := BasicCommandExists("docker-compose")
t.Logf("command exists is => %s", strconv.FormatBool(exists))
}