X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fsync%2Fservices_systemd_test.go;h=657000e3bcd998ce386dd899b4239b5ed5d1bde4;hb=4206e0dbca82f5df7d8e534f78cb737979880916;hp=5aa36cd7bc38019eac8d947d374876cf05bf4f7b;hpb=9269fa3c94e700afc0be823f58ea473a2db8f3dc;p=safcm%2Fsafcm.git diff --git a/remote/sync/services_systemd_test.go b/remote/sync/services_systemd_test.go index 5aa36cd..657000e 100644 --- a/remote/sync/services_systemd_test.go +++ b/remote/sync/services_systemd_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2022 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -61,7 +61,7 @@ LoadError= }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -111,7 +111,7 @@ LoadError= "" }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -161,7 +161,7 @@ LoadError= }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -224,7 +224,7 @@ LoadError= []byte("fake stderr"), }, []error{nil, nil, nil, nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -237,7 +237,7 @@ LoadError= }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -245,7 +245,7 @@ LoadError= }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -256,7 +256,7 @@ LoadError= }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -337,7 +337,7 @@ LoadError= }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -423,7 +423,7 @@ LoadError= nil, fmt.Errorf("fake error"), }, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -436,7 +436,7 @@ LoadError= }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/bin/systemctl", Args: []string{ "/bin/systemctl", @@ -444,7 +444,7 @@ LoadError= }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/bin/systemctl", Args: []string{ "/bin/systemctl",