This repository was archived by the owner on May 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ filter!(file -> readline(file) != "# EXCLUDE FROM TESTING", examples)
1818cd (examples_dir) do
1919 examples = relpath .(examples, Ref (examples_dir))
2020 @testset for example in examples
21- julia = ` $( Base. julia_cmd ()) --startup=no `
21+ cmd = Base. julia_cmd ()
2222 if Base. JLOptions (). project != C_NULL
2323 cmd = ` $cmd --project=$(unsafe_string (Base. JLOptions (). project)) `
2424 end
2525
26- @test success (pipeline (` $julia $example ` , stderr = stderr ))
26+ @test success (pipeline (` $cmd $example ` , stderr = stderr ))
2727 end
2828end
2929
Original file line number Diff line number Diff line change 7777function julia_script (code, args= ` ` )
7878 # FIXME : this doesn't work when the compute mode is set to exclusive
7979 script = " using CUDAnative, CUDAdrv; device!($(device ()) ); $code "
80- cmd = ```
81- $(Base. julia_cmd ())
82- --code-coverage=$((" none" , " user" , " all" )[Base. JLOptions (). code_coverage + 1 ])
83- --color=$(Base. have_color ? " yes" : " no" )
84- --compiled-modules=$(Bool (Base. JLOptions (). use_compiled_modules) ? " yes" : " no" )
85- --check-bounds=yes
86- --startup-file=$(Base. JLOptions (). startupfile == 1 ? " yes" : " no" )
87- --track-allocation=$((" none" , " user" , " all" )[Base. JLOptions (). malloc_log + 1 ])
88- --eval $script
89- ```
80+ cmd = Base. julia_cmd ()
9081 if Base. JLOptions (). project != C_NULL
91- # --project isn't preserved by julia_cmd()
9282 cmd = ` $cmd --project=$(unsafe_string (Base. JLOptions (). project)) `
9383 end
94- cmd = ` $cmd $args `
84+ cmd = ` $cmd --eval $script $args `
9585
9686 out = Pipe ()
9787 err = Pipe ()
You can’t perform that action at this time.
0 commit comments