fix: add LOCAL_TEST env var for local only test

- add_qaqc_runlist_from_masterlogs works only when all of the master
  logs are located. but CI doesn't since log files are not included in
  the repo
This commit is contained in:
Wataru Otsubo 2024-09-13 19:37:49 +09:00
parent 6060e26e90
commit 8ad4dfba27

View file

@ -51,6 +51,7 @@ true || include("../src/PSBoardDataBase.jl")
@test PSBoardDataBase.add_qaqc_dispatch(db, dispatch_table) |> isnothing @test PSBoardDataBase.add_qaqc_dispatch(db, dispatch_table) |> isnothing
if haskey(ENV, "LOCAL_TEST")
@test PSBoardDataBase.add_qaqc_runlist_from_masterlogs(db, "input/log/") |> @test PSBoardDataBase.add_qaqc_runlist_from_masterlogs(db, "input/log/") |>
isnothing isnothing
@ -63,3 +64,4 @@ true || include("../src/PSBoardDataBase.jl")
run(`sqlitebrowser $dbpath`) run(`sqlitebrowser $dbpath`)
end end
end end
end