Skip to content

Commit

Permalink
fix: redirect output of bg-suite to stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris committed Jan 31, 2025
1 parent b24692f commit 396b7b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/core/bg-suite/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type execTestsCmd struct {
Strict bool `required:"" default:"false" short:"s" help:"Enable strict mode. This enables more tests and checks."`
Interactive bool `optional:"" short:"i" help:"Interactive mode. Errors will stop the testing."`
Config string `optional:"" short:"c" help:"Path/Filename to config file."`
Log string `optional:"" help:"Give a path/filename for test result output inJSON format. e.g.: /path/to/filename.json"`
Firmware string `optional:"" short:"f" help:"Path/Filename to firmware to test with."`
}

Expand Down
6 changes: 6 additions & 0 deletions cmd/core/bg-suite/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package main

import (
"os"

"github.com/9elements/converged-security-suite/v2/pkg/log"
"github.com/alecthomas/kong"
"github.com/linuxboot/fiano/pkg/intel/metadata/cbnt"
fianoLog "github.com/linuxboot/fiano/pkg/log"
"github.com/sirupsen/logrus"
)

const (
Expand Down Expand Up @@ -36,6 +39,9 @@ func main() {
Compact: true,
Summary: true,
}))

logrus.SetOutput(os.Stdout)

cbnt.StrictOrderCheck = cli.ManifestStrictOrderCheck
fianoLog.DefaultLogger = log.FianoLogger{}
err := ctx.Run(&context{})
Expand Down

0 comments on commit 396b7b6

Please sign in to comment.