mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
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:
parent
6060e26e90
commit
8ad4dfba27
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue