aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--helper/stub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/stub.go b/helper/stub.go
index 78559b5e..f9ff3681 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())
}
}()