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 @@ -34,7 +34,10 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
3434 pushfirst! (LOAD_PATH , joinpath (@__DIR__ , " .." ))
3535 using Pkg
3636 Pkg. activate (@__DIR__ )
37- Pkg. instantiate ()
37+ try
38+ Pkg. instantiate ()
39+ catch
40+ end
3841
3942 using ArgParse
4043 s = ArgParseSettings (description = " Dagger Testsuite" )
@@ -54,6 +57,9 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
5457 " -v" , " --verbose"
5558 action = :store_true
5659 help = " Run the tests with debug logs from Dagger"
60+ " -O" , " --offline"
61+ action = :store_true
62+ help = " Set Pkg into offline mode"
5763 end
5864 end
5965
@@ -87,6 +93,11 @@ if PROGRAM_FILE != "" && realpath(PROGRAM_FILE) == @__FILE__
8793 if parsed_args[" verbose" ]
8894 ENV [" JULIA_DEBUG" ] = " Dagger"
8995 end
96+
97+ if parsed_args[" offline" ]
98+ Pkg. UPDATED_REGISTRY_THIS_SESSION[] = true
99+ Pkg. offline (true )
100+ end
90101else
91102 to_test = all_test_names
92103 @info " Running all tests"
You can’t perform that action at this time.
0 commit comments