You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Sprintf("[optional] the dir containing the configuration of an existing network to target for testing. Will only be used if --use-existing-network is specified. Also possible to configure via the %s env variable.", tmpnet.NetworkDirEnvName),
72
+
fmt.Sprintf("[optional] the dir containing the configuration of an existing network to target for testing. Will only be used if --reuse-network is specified. Also possible to configure via the %s env variable.", tmpnet.NetworkDirEnvName),
68
73
)
69
74
flag.BoolVar(
70
-
&vars.useExistingNetwork,
71
-
"use-existing-network",
75
+
&vars.reuseNetwork,
76
+
"reuse-network",
72
77
false,
73
-
"[optional] whether to target the existing network identified by --network-dir.",
78
+
"[optional] reuse an existing network. If an existing network is not already running, create a new one and leave it running for subsequent usage.",
74
79
)
75
80
flag.DurationVar(
76
81
&vars.networkShutdownDelay,
77
82
"network-shutdown-delay",
78
83
12*time.Second, // Make sure this value takes into account the scrape_interval defined in scripts/run_prometheus.sh
79
84
"[optional] the duration to wait before shutting down the test network at the end of the test run. A value greater than the scrape interval is suggested. 0 avoids waiting for shutdown.",
80
85
)
86
+
flag.BoolVar(
87
+
&vars.stopNetwork,
88
+
"stop-network",
89
+
false,
90
+
"[optional] stop an existing network and exit without executing any tests.",
0 commit comments