Skip to content

Incorrect assumption that Base.JLOptions().use_compiled_modules can be converted to a Bool #129

@jakobjpeters

Description

@jakobjpeters
julia> test(
           "Template";
           coverage = true,
           julia_args = `--color yes --compiled-modules existing`,
           logfilename = "test_report.xml"
       )

ERROR: LoadError: InexactError: Bool(2)
Stacktrace:
  [1] Bool
    @ ./bool.jl:190 [inlined]
  [2] gen_command(runner_code::String, julia_args::Cmd, coverage::Bool)
    @ TestReports ~/.julia/packages/TestReports/zj3uX/src/runner.jl:183
  [3] test!(pkg::String, errs::Vector{AbstractString}, nopkgs::Vector{AbstractString}, notests::Vector{AbstractString}, logfilename::String; coverage::Bool, julia_args::Cmd, test_args::Cmd)
    @ TestReports ~/.julia/packages/TestReports/zj3uX/src/runner.jl:281
  [4] test!
    @ ~/.julia/packages/TestReports/zj3uX/src/runner.jl:252 [inlined]
  [5] test(pkgs::Vector{String}; logfilename::Vector{String}, logfilepath::String, kwargs::@Kwargs{coverage::Bool, julia_args::Cmd})
    @ TestReports ~/.julia/packages/TestReports/zj3uX/src/runner.jl:333
  [6] test
    @ ~/.julia/packages/TestReports/zj3uX/src/runner.jl:317 [inlined]
  [7] #test#15
    @ ~/.julia/packages/TestReports/zj3uX/src/runner.jl:316 [inlined]
  [8] top-level scope
    @ /builds/optimization/Template.jl/scripts/test.jl:25
  [9] include(mod::Module, _path::String)
    @ Base ./Base.jl:306
 [10] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:317
 [11] _start()
    @ Base ./client.jl:550

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions