@@ -297,37 +297,41 @@ end
297297 end
298298end
299299
300- @testset " [LIVE] JuliaHub.submit_job / appbundle" begin
301- job1_dir = joinpath (@__DIR__ , " jobenvs" , " job1" )
302- # Note: the exact hash of the file may change if Git decides to change line endings
303- # on e.g. Windows.
304- datafile_hash = bytes2hex (open (SHA. sha1, joinpath (job1_dir, " datafile.txt" )))
305- job, _ = submit_test_job (
306- JuliaHub. appbundle (job1_dir, " script.jl" );
307- auth, alias= " appbundle" ,
308- )
309- job = JuliaHub. wait_job (job)
310- @test test_job_done_and_not_failed (job, " Completed" )
311- # Check input and output files
312- @test length (JuliaHub. job_files (job, :input )) >= 2
313- @test JuliaHub. job_file (job, :input , " code.jl" ) isa JuliaHub. JobFile
314- @test JuliaHub. job_file (job, :input , " appbundle.tar" ) isa JuliaHub. JobFile
315- # Test the results values
316- @test ! isempty (job. results)
317- let results = JSON. parse (job. results)
318- @test results isa AbstractDict
319- @test haskey (results, " datastructures_version" )
320- @test VersionNumber (results[" datastructures_version" ]) == v " 0.17.0"
321- @test haskey (results, " datafile_hash" )
322- @test results[" datafile_hash" ] == datafile_hash
323- @test haskey (results, " scripts" )
324- let s = results[" scripts" ]
325- @test s isa AbstractDict
326- @test get (s, " include_success" , nothing ) === true
327- @test get (s, " script_1" , nothing ) === true
328- @test get (s, " script_2" , nothing ) === true
300+ if v " 1.10" <= Base. VERSION < v " 1.12"
301+ @testset " [LIVE] JuliaHub.submit_job / appbundle" begin
302+ job1_dir = joinpath (@__DIR__ , " jobenvs" , " job1" )
303+ # Note: the exact hash of the file may change if Git decides to change line endings
304+ # on e.g. Windows.
305+ datafile_hash = bytes2hex (open (SHA. sha1, joinpath (job1_dir, " datafile.txt" )))
306+ job, _ = submit_test_job (
307+ JuliaHub. appbundle (job1_dir, " script.jl" );
308+ auth, alias= " appbundle" ,
309+ )
310+ job = JuliaHub. wait_job (job)
311+ @test test_job_done_and_not_failed (job, " Completed" )
312+ # Check input and output files
313+ @test length (JuliaHub. job_files (job, :input )) >= 2
314+ @test JuliaHub. job_file (job, :input , " code.jl" ) isa JuliaHub. JobFile
315+ @test JuliaHub. job_file (job, :input , " appbundle.tar" ) isa JuliaHub. JobFile
316+ # Test the results values
317+ @test ! isempty (job. results)
318+ let results = JSON. parse (job. results)
319+ @test results isa AbstractDict
320+ @test haskey (results, " datastructures_version" )
321+ @test VersionNumber (results[" datastructures_version" ]) == v " 0.17.0"
322+ @test haskey (results, " datafile_hash" )
323+ @test results[" datafile_hash" ] == datafile_hash
324+ @test haskey (results, " scripts" )
325+ let s = results[" scripts" ]
326+ @test s isa AbstractDict
327+ @test get (s, " include_success" , nothing ) === true
328+ @test get (s, " script_1" , nothing ) === true
329+ @test get (s, " script_2" , nothing ) === true
330+ end
329331 end
330332 end
333+ else
334+ @info (" Skipping appbundle tests for Julia version $(Base. VERSION ) " )
331335end
332336
333337@testset " [LIVE] Job output file access" begin
0 commit comments