Skip to content

Commit 14dc752

Browse files
authored
Respect CLI flags in unit_test_pass E2E tests (#7226)
## Description This PR passes the CLI flags `--release`, `--print...`, and `--target` to the compilation of the tests in the `unit_test_pass` category. Passing the `--release` flag is especially important, because up to now, `unit_test_pass` tests were always building the debug version of binaries, even when the test suite was executed as `--release`. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
1 parent 134916d commit 14dc752

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/src/e2e_vm_tests/harness.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,14 @@ pub(crate) async fn compile_and_run_unit_tests(
330330
},
331331
experimental: run_config.experimental.experimental.clone(),
332332
no_experimental: run_config.experimental.no_experimental.clone(),
333+
release: run_config.release,
334+
print: PrintOpts {
335+
asm: run_config.print_asm,
336+
bytecode: run_config.print_bytecode,
337+
ir: run_config.print_ir.clone(),
338+
..Default::default()
339+
},
340+
build_target: run_config.build_target,
333341
..Default::default()
334342
})
335343
}) {

0 commit comments

Comments
 (0)