From a368c2c363b8fe5766590b2001e5e501eb1d4c34 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 29 Jun 2026 22:57:51 +0200 Subject: [PATCH] CI: do not run Malfunction tests in non-Debug profile --- wild/tests/integration_tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wild/tests/integration_tests.rs b/wild/tests/integration_tests.rs index e3e459814..d64f1a7b5 100644 --- a/wild/tests/integration_tests.rs +++ b/wild/tests/integration_tests.rs @@ -5704,6 +5704,12 @@ fn run_integration_test( return Ok(libtest_mimic::Completion::ignored_with(error.to_string())); } + if !cfg!(debug_assertions) && config.active_malfunction.is_some() { + return Ok(libtest_mimic::Completion::ignored_with( + "Malfunction tests are allowed only in Debug profile", + )); + } + std::fs::create_dir_all(config.build_dir()).with_context(|| { format!( "Failed to create directory `{}`",