[ Agent ] [ Executor ] - add systemc shutdown service
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user