remove logf to clean up tests output

This commit is contained in:
redanthrax 2022-06-28 15:27:11 -07:00
parent 5855283d24
commit 75e6d3240f
10 changed files with 4 additions and 26 deletions

View file

@ -22,6 +22,4 @@ func TestRunScript(t *testing.T) {
if exitcode != 0 {
t.Fatalf("Error: Exit Code %d", exitcode)
}
t.Logf("Result: %s", stdout)
}

View file

@ -10,7 +10,7 @@ import (
)
func TestRunScript(t *testing.T) {
stdout, stderr, exitcode, err := system.RunScript("#!/bin/sh\ncat /etc/os-release", "/bin/sh", nil, 30)
_, stderr, exitcode, err := system.RunScript("#!/bin/sh\ncat /etc/os-release", "/bin/sh", nil, 30)
if err != nil {
t.Fatal(err)
}
@ -22,6 +22,4 @@ func TestRunScript(t *testing.T) {
if exitcode != 0 {
t.Fatalf("Error: Exit Code %d", exitcode)
}
t.Logf("Result: %s", stdout)
}

View file

@ -22,8 +22,6 @@ func TestSystemRebootRequired(t *testing.T) {
if err != nil {
t.Fatal(err)
}
t.Logf("System Reboot Required %t", required)
}
func TestShowStatus(t *testing.T) {
@ -41,8 +39,6 @@ func TestLoggedOnUser(t *testing.T) {
if user == "" {
t.Fatalf("Expected a user, got empty")
}
t.Logf("Logged on user: %s", user)
}
func TestOsString(t *testing.T) {
@ -50,6 +46,4 @@ func TestOsString(t *testing.T) {
if osString == "error getting host info" {
t.Fatalf("Unable to get OS string")
}
t.Logf("OS String: %s", osString)
}
}