File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function choosetests(choices = [])
65
65
exit_on_error = false
66
66
use_revise = false
67
67
seed = rand (RandomDevice (), UInt128)
68
+ force_net = false
68
69
dryrun = false
69
70
70
71
for (i, t) in enumerate (choices)
@@ -77,6 +78,8 @@ function choosetests(choices = [])
77
78
use_revise = true
78
79
elseif startswith (t, " --seed=" )
79
80
seed = parse (UInt128, t[8 : end ])
81
+ elseif t == " --force-net"
82
+ force_net = true
80
83
elseif t == " --help-list"
81
84
dryrun = true
82
85
elseif t == " --help"
@@ -149,7 +152,12 @@ function choosetests(choices = [])
149
152
net_on = true
150
153
try
151
154
ipa = getipaddr ()
152
- catch
155
+ catch ex
156
+ if force_net
157
+ msg = " Networking is unavailable, and the `--force-net` option was passed"
158
+ @error msg
159
+ rethrow ()
160
+ end
153
161
@warn " Networking unavailable: Skipping tests [" * join (net_required_for, " , " ) * " ]"
154
162
net_on = false
155
163
end
You can’t perform that action at this time.
0 commit comments