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 = [])
6565 exit_on_error = false
6666 use_revise = false
6767 seed = rand (RandomDevice (), UInt128)
68+ force_net = false
6869 dryrun = false
6970
7071 for (i, t) in enumerate (choices)
@@ -77,6 +78,8 @@ function choosetests(choices = [])
7778 use_revise = true
7879 elseif startswith (t, " --seed=" )
7980 seed = parse (UInt128, t[8 : end ])
81+ elseif t == " --force-net"
82+ force_net = true
8083 elseif t == " --help-list"
8184 dryrun = true
8285 elseif t == " --help"
@@ -149,7 +152,12 @@ function choosetests(choices = [])
149152 net_on = true
150153 try
151154 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
153161 @warn " Networking unavailable: Skipping tests [" * join (net_required_for, " , " ) * " ]"
154162 net_on = false
155163 end
You can’t perform that action at this time.
0 commit comments