From a0c62e686e3d226fa2231d17915f3af46340d0cc Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Fri, 29 Sep 2023 14:10:15 +0200 Subject: [PATCH] Enable Enso asserts via ENSO_ENABLE_ASSERTIONS env var in CI --- build/build/src/enso.rs | 4 +++- build/build/src/paths.rs | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build/build/src/enso.rs b/build/build/src/enso.rs index b1258c19c1db..40f03754c938 100644 --- a/build/build/src/enso.rs +++ b/build/build/src/enso.rs @@ -1,6 +1,6 @@ use crate::prelude::*; -use crate::paths::Paths; +use crate::paths::{ENSO_ENABLE_ASSERTIONS, Paths}; use crate::paths::ENSO_META_TEST_ARGS; use crate::paths::ENSO_META_TEST_COMMAND; use crate::postgres; @@ -119,6 +119,8 @@ impl BuiltEnso { ENSO_META_TEST_COMMAND.set(&self.wrapper_script_path())?; ENSO_META_TEST_ARGS.set(&format!("{} --run", ir_caches.flag()))?; + ENSO_ENABLE_ASSERTIONS.set(&"true".to_string())?; + // Prepare Engine Test Environment if let Ok(gdoc_key) = std::env::var("GDOC_KEY") { let google_api_test_data_dir = diff --git a/build/build/src/paths.rs b/build/build/src/paths.rs index afd5bab79df6..c52809a091b1 100644 --- a/build/build/src/paths.rs +++ b/build/build/src/paths.rs @@ -29,6 +29,9 @@ ide_ci::define_env_var! { /// Arguments to the engine runner. /// See: ENSO_META_TEST_ARGS, String; + + /// If Enso-specific assertions should be enabled. + ENSO_ENABLE_ASSERTIONS, String; } pub const EDITION_FILE_ARTIFACT_NAME: &str = "Edition File";