1
0
mirror of https://github.com/opencontainers/runc.git synced 2025-07-30 17:43:06 +03:00

systemd: Export IsSystemdRunning() function

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel
2020-03-27 14:59:46 -07:00
parent 4a9e1747da
commit 33c6125da6
4 changed files with 8 additions and 8 deletions

View File

@ -506,7 +506,7 @@ func TestFreeze(t *testing.T) {
}
func TestSystemdFreeze(t *testing.T) {
if !systemd.UseSystemd() {
if !systemd.IsRunningSystemd() {
t.Skip("Systemd is unsupported")
}
testFreeze(t, true)
@ -563,7 +563,7 @@ func TestCpuShares(t *testing.T) {
}
func TestCpuSharesSystemd(t *testing.T) {
if !systemd.UseSystemd() {
if !systemd.IsRunningSystemd() {
t.Skip("Systemd is unsupported")
}
testCpuShares(t, true)
@ -598,7 +598,7 @@ func TestPids(t *testing.T) {
}
func TestPidsSystemd(t *testing.T) {
if !systemd.UseSystemd() {
if !systemd.IsRunningSystemd() {
t.Skip("Systemd is unsupported")
}
testPids(t, true)
@ -684,7 +684,7 @@ func TestRunWithKernelMemory(t *testing.T) {
}
func TestRunWithKernelMemorySystemd(t *testing.T) {
if !systemd.UseSystemd() {
if !systemd.IsRunningSystemd() {
t.Skip("Systemd is unsupported")
}
testRunWithKernelMemory(t, true)