X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=remote%2Fsync%2Fpackages_debian_test.go;h=6ba31ab69d9b36a3e622d66da5902a0087ce9ebc;hb=4206e0dbca82f5df7d8e534f78cb737979880916;hp=97b8c6182d3f6a9727c05a680bb034ddabb04fff;hpb=9269fa3c94e700afc0be823f58ea473a2db8f3dc;p=safcm%2Fsafcm.git diff --git a/remote/sync/packages_debian_test.go b/remote/sync/packages_debian_test.go index 97b8c61..6ba31ab 100644 --- a/remote/sync/packages_debian_test.go +++ b/remote/sync/packages_debian_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 @@ -62,7 +62,7 @@ install ok installed package-two }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/usr/bin/dpkg-query", Args: []string{ "/usr/bin/dpkg-query", @@ -110,7 +110,7 @@ install ok installed package-two }, [][]byte{nil, nil}, []error{nil, nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/usr/bin/dpkg-query", Args: []string{ "/usr/bin/dpkg-query", @@ -119,7 +119,7 @@ install ok installed package-two }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/usr/bin/apt-get", Args: []string{ "/usr/bin/apt-get", @@ -186,7 +186,7 @@ install ok installed golang-1.16-src nil, fmt.Errorf("fake error"), }, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/usr/bin/dpkg-query", Args: []string{ "/usr/bin/dpkg-query", @@ -195,7 +195,7 @@ install ok installed golang-1.16-src }, Stdout: &bytes.Buffer{}, Stderr: &bytes.Buffer{}, - }, &exec.Cmd{ + }, { Path: "/usr/bin/apt-get", Args: []string{ "/usr/bin/apt-get", @@ -258,7 +258,7 @@ install ok installed golang-1.16-src }, [][]byte{nil}, []error{nil}, - []*exec.Cmd{&exec.Cmd{ + []*exec.Cmd{{ Path: "/usr/bin/dpkg-query", Args: []string{ "/usr/bin/dpkg-query",