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,15 +51,17 @@ true || include("../src/PSBoardDataBase.jl")
@test PSBoardDataBase.add_qaqc_dispatch(db, dispatch_table) |> isnothing @test PSBoardDataBase.add_qaqc_dispatch(db, dispatch_table) |> isnothing
@test PSBoardDataBase.add_qaqc_runlist_from_masterlogs(db, "input/log/") |> if haskey(ENV, "LOCAL_TEST")
isnothing @test PSBoardDataBase.add_qaqc_runlist_from_masterlogs(db, "input/log/") |>
isnothing
extra_100test_result_df = extra_100test_result_df =
CSV.read("input/PS board QAQC Data Base - 100回試験結果.csv", DataFrame) CSV.read("input/PS board QAQC Data Base - 100回試験結果.csv", DataFrame)
@test PSBoardDataBase.add_qaqc_100test_result(db, extra_100test_result_df) |> @test PSBoardDataBase.add_qaqc_100test_result(db, extra_100test_result_df) |>
isnothing isnothing
run(`sqlitebrowser $dbpath`) run(`sqlitebrowser $dbpath`)
end
end end
end end