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
"[optional] start a new network and exit without executing any tests. The new network cannot be reused with --reuse-network. Ignored if either --reuse-network or --stop-network is provided.",
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),
121
+
fmt.Sprintf("[optional] the dir containing the configuration of an existing network. Will only be used if --reuse-network, --restart-network or --stop-network are specified. Also possible to configure via the %s env variable.", tmpnet.NetworkDirEnvName),
94
122
)
123
+
95
124
flag.BoolVar(
96
125
&vars.reuseNetwork,
97
126
"reuse-network",
98
127
false,
99
128
"[optional] reuse an existing network previously started with --reuse-network. If a network is not already running, create a new one and leave it running for subsequent usage. Ignored if --stop-network is provided.",
100
129
)
130
+
101
131
flag.BoolVar(
102
132
&vars.restartNetwork,
103
133
"restart-network",
104
134
false,
105
135
"[optional] restart an existing network previously started with --reuse-network. Useful for ensuring a network is running with the current state of binaries on disk. Ignored if a network is not already running or --stop-network is provided.",
106
136
)
107
-
SetMonitoringFlags(
108
-
&vars.startCollectors,
109
-
&vars.checkMonitoring,
110
-
)
111
-
flag.BoolVar(
112
-
&vars.startNetwork,
113
-
"start-network",
114
-
false,
115
-
"[optional] start a new network and exit without executing any tests. The new network cannot be reused with --reuse-network. Ignored if either --reuse-network or --stop-network is provided.",
116
-
)
137
+
117
138
flag.BoolVar(
118
139
&vars.stopNetwork,
119
140
"stop-network",
120
141
false,
121
142
"[optional] stop an existing network started with --reuse-network and exit without executing any tests.",
122
143
)
123
-
flag.IntVar(
124
-
&vars.nodeCount,
125
-
"node-count",
126
-
tmpnet.DefaultNodeCount,
127
-
"number of nodes the network should initially consist of",
fmt.Sprintf("The directory in which to create the network directory. Also possible to configure via the %s env variable.", tmpnet.RootNetworkDirEnvName),
48
+
)
49
+
stringVar(
50
+
&v.NetworkOwner,
51
+
"network-owner",
52
+
v.defaultNetworkOwner,
53
+
"The string identifying the intended owner of the network")
54
+
intVar(
55
+
&v.nodeCount,
56
+
"node-count",
57
+
tmpnet.DefaultNodeCount,
58
+
"Number of nodes the network should initially consist of",
0 commit comments