diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-01-02 17:06:50 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-02-19 11:54:01 +0000 |
| commit | 164800ebad7f26d05eefb0095d190462ed97bee0 (patch) | |
| tree | eebdf66ac764641e8295950ad50e94724d0f8c4b /pkg | |
| parent | b578f30201a3220d65b16593fe43ad5a5ebe0d64 (diff) | |
pkg/runtest: optionally print debug info in tests
When the -debug flag is specified, print syz-executor's debug info.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/runtest/run_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/runtest/run_test.go b/pkg/runtest/run_test.go index bc71a9f08..c80f7c6b0 100644 --- a/pkg/runtest/run_test.go +++ b/pkg/runtest/run_test.go @@ -25,6 +25,8 @@ import ( // to select a subset of tests to run. var flagFilter = flag.String("filter", "", "prefix to match test file names") +var flagDebug = flag.Bool("debug", false, "include debug output from the executor") + func Test(t *testing.T) { switch runtime.GOOS { case targets.OpenBSD: @@ -97,6 +99,7 @@ func test(t *testing.T, sysTarget *targets.Target) { }, Retries: 7, // empirical number that seem to reduce flakes to zero Verbose: true, + Debug: *flagDebug, } if err := ctx.Run(); err != nil { t.Fatal(err) |
