Skip to content

Commit ebb1be0

Browse files
committed
added: disable debug logging for doctests
1 parent c5f6145 commit ebb1be0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/runtests.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ include("test_state_estim.jl")
1515
include("test_predictive_control.jl")
1616
include("test_plot_sim.jl")
1717

18+
old_debug_level = ENV["JULIA_DEBUG"]
1819
DocMeta.setdocmeta!(
1920
ModelPredictiveControl,
2021
:DocTestSetup,
21-
:(using ModelPredictiveControl, ControlSystemsBase);
22+
:(
23+
using ModelPredictiveControl, ControlSystemsBase;
24+
ENV["JULIA_DEBUG"] = ""; # temporarily disable @debug logging for the doctests
25+
);
2226
recursive=true,
2327
warn=false
2428
)
2529
doctest(ModelPredictiveControl, testset="DocTest")
30+
ENV["JULIA_DEBUG"] = old_debug_level
2631

2732
end;
2833

0 commit comments

Comments
 (0)