[ Agent ] [ Executor ] - add systemc shutdown service

This commit is contained in:
zeaslity
2023-10-19 15:10:59 +08:00
parent 8bb7604169
commit 328247eeae
4 changed files with 100 additions and 0 deletions

View File

@@ -37,3 +37,13 @@ func TestBasicFileExistFalse(t *testing.T) {
assert.Equal(t, exists, false, "文件不存在应该返回false")
}
func TestBasicSystemdShutdown(t *testing.T) {
ok, resultLog := BasicSystemdShutdown("docker.service")
//ok, resultLog := BasicSystemdShutdown("docker")
//ok, resultLog := BasicSystemdShutdown("fwd")
t.Logf("result ok is %v resultLog is %v", ok, resultLog)
}