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"
@@ -148,7 +151,12 @@ function choosetests(choices = [])
148
151
net_on = true
149
152
try
150
153
ipa = getipaddr ()
151
- catch
154
+ catch ex
155
+ if force_net
156
+ msg = " Networking is unavailable, and the `--force-net` option was passed"
157
+ @error msg
158
+ rethrow ()
159
+ end
152
160
@warn " Networking unavailable: Skipping tests [" * join (net_required_for, " , " ) * " ]"
153
161
net_on = false
154
162
end
You can’t perform that action at this time.
0 commit comments