Skip to content

Commit

Permalink
Enable Enso asserts via ENSO_ENABLE_ASSERTIONS env var in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Sep 29, 2023
1 parent a7c2e75 commit 6de74e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/build/src/enso.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 =
Expand Down
3 changes: 3 additions & 0 deletions build/build/src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ide_ci::define_env_var! {
/// Arguments to the engine runner.
/// See: <https://github.com/diab0l/enso/blob/feature/test_with_clue/test/Meta_Test_Suite_Tests/README.md>
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";
Expand Down

0 comments on commit 6de74e6

Please sign in to comment.