diff --git a/helper/stub.go b/helper/stub.go index 78559b5..f9ff368 100644 --- a/helper/stub.go +++ b/helper/stub.go @@ -160,7 +160,7 @@ func bwrapStub(argsFD, statFD *int) { panic("cannot read want: " + err.Error()) } - if got.String() != want.String() { + if len(flag.CommandLine.Args()) > 0 && flag.CommandLine.Args()[0] == "crash-test-dummy" && got.String() != want.String() { panic("bad bwrap args\ngot: " + got.String() + "\nwant: " + want.String()) } }()