libct/cg/TestGetHugePageSizeImpl: only log errors

This:

> === RUN   TestGetHugePageSizeImpl
>     utils_test.go:504: (input [hugepages-akB], error strconv.Atoi: parsing "a": invalid syntax)

feels like an error but it's not.

Only log errors.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-01-14 10:38:59 -08:00
parent 3394e37405
commit 657a24ce01
+1 -2
View File
@@ -501,9 +501,8 @@ func TestGetHugePageSizeImpl(t *testing.T) {
warns.Reset()
output, err := getHugePageSizeFromFilenames(c.input)
if err != nil {
t.Logf("(input %v, error %v)", c.input, err)
if !c.isErr {
t.Error("unexpected error ^^^^")
t.Errorf("input %v, expected nil, got error: %v", c.input, err)
}
// no more checks
continue