File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
35
35
pushfirst! (LOAD_PATH , joinpath (@__DIR__ , " .." ))
36
36
using Pkg
37
37
Pkg. activate (@__DIR__ )
38
- Pkg. instantiate ()
38
+ try
39
+ Pkg. instantiate ()
40
+ catch
41
+ end
39
42
40
43
using ArgParse
41
44
s = ArgParseSettings (description = " Dagger Testsuite" )
@@ -55,6 +58,9 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
55
58
" -v" , " --verbose"
56
59
action = :store_true
57
60
help = " Run the tests with debug logs from Dagger"
61
+ " -O" , " --offline"
62
+ action = :store_true
63
+ help = " Set Pkg into offline mode"
58
64
end
59
65
end
60
66
@@ -88,6 +94,11 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
88
94
if parsed_args[" verbose" ]
89
95
ENV [" JULIA_DEBUG" ] = " Dagger"
90
96
end
97
+
98
+ if parsed_args[" offline" ]
99
+ Pkg. UPDATED_REGISTRY_THIS_SESSION[] = true
100
+ Pkg. offline (true )
101
+ end
91
102
else
92
103
to_test = all_test_names
93
104
@info " Running all tests"
You can’t perform that action at this time.
0 commit comments