fixed tests
This commit is contained in:
parent
75e6d3240f
commit
8f27cb1842
2 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRunScript(t *testing.T) {
|
func TestRunScript(t *testing.T) {
|
||||||
stdout, stderr, exitcode, err := system.RunScript("#!/bin/sh\nuname -av", "/bin/bash", nil, 30)
|
_, stderr, exitcode, err := system.RunScript("#!/bin/sh\nuname -av", "/bin/bash", nil, 30)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
//go:build darwin
|
//go:build !windows
|
||||||
// +build darwin
|
// +build !windows
|
||||||
|
|
||||||
package system_test
|
package system_test
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ func TestNewCMDOpts(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSystemRebootRequired(t *testing.T) {
|
func TestSystemRebootRequired(t *testing.T) {
|
||||||
required, err := system.SystemRebootRequired()
|
_, err := system.SystemRebootRequired()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue