mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-15 04:55:24 +00:00
Fix formatting issues for CI
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
parent
08132efdcb
commit
10ef6aea68
3 changed files with 30 additions and 17 deletions
|
|
@ -10,7 +10,7 @@ fn main() {
|
|||
|
||||
// Check for test directory from environment for test purposes
|
||||
let test_dir = std::env::var("TESTSCRIPT_TEST_DIR").unwrap_or_else(|_| "testdata".to_string());
|
||||
|
||||
|
||||
// Check if preserve work should be enabled
|
||||
let preserve_work = std::env::var("TESTSCRIPT_PRESERVE_WORK")
|
||||
.map(|v| v == "true" || v == "1")
|
||||
|
|
@ -18,7 +18,7 @@ fn main() {
|
|||
|
||||
// Run all tests in the specified directory
|
||||
let mut builder = testscript::run(test_dir);
|
||||
|
||||
|
||||
if preserve_work {
|
||||
builder = builder.preserve_work_on_failure(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue