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";