aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/syz-ci.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-11-24 13:45:15 +0100
committerAleksandr Nogikh <nogikh@google.com>2023-11-27 13:29:32 +0000
commitbf6556b0ba42afec2198916bda54e4d843fc5d42 (patch)
tree1f1e68ffa200ae4f067422e8d8e6caaf7f859856 /syz-ci/syz-ci.go
parent3f7138634be3962d395f1c13e856882690df0d3d (diff)
syz-ci: make auto-restart optional
By letting syz-ci just exit on update, we make it possible to also automatically pull the latest Docker container before starting the new version.
Diffstat (limited to 'syz-ci/syz-ci.go')
-rw-r--r--syz-ci/syz-ci.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/syz-ci/syz-ci.go b/syz-ci/syz-ci.go
index 00035a6ce..e1408c64e 100644
--- a/syz-ci/syz-ci.go
+++ b/syz-ci/syz-ci.go
@@ -79,6 +79,8 @@ var (
flagAutoUpdate = flag.Bool("autoupdate", true, "auto-update the binary (for testing)")
flagManagers = flag.Bool("managers", true, "start managers (for testing)")
flagDebug = flag.Bool("debug", false, "debug mode (for testing)")
+ // nolint: lll
+ flagExitOnUpgrade = flag.Bool("exit-on-upgrade", false, "exit after a syz-ci upgrade is applied; otherwise syz-ci restarts")
)
type Config struct {