Skip to content

Commit 1fbace8

Browse files
committed
Set logging level to fatal when running platform rule function tests
The tests use a platform that is missing a boards.txt file. With the logger's default "info" level, this results in a useless log line for every one of those tests.
1 parent 889fd40 commit 1fbace8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: internal/rule/rulefunction/platform_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ import (
2525
"github.com/arduino/arduino-lint/internal/project/projecttype"
2626
"github.com/arduino/arduino-lint/internal/rule/ruleresult"
2727
"github.com/arduino/go-paths-helper"
28+
"github.com/sirupsen/logrus"
2829
"github.com/stretchr/testify/assert"
2930
)
3031

3132
var platformTestDataPath *paths.Path
3233

3334
func init() {
35+
logrus.SetLevel(logrus.FatalLevel)
3436
workingDirectory, err := paths.Getwd()
3537
if err != nil {
3638
panic(err)

0 commit comments

Comments
 (0)