Skip to content

Commit

Permalink
Avoid moon test --trace closing prematurely. (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgxbslgx authored Sep 11, 2024
1 parent d1daee5 commit 583a5ef
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/moon/src/cli/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,20 @@ fn run_test_internal(
return dry_run::print_commands(&module, &moonc_opt, &moonbuild_opt).map(From::from);
}

if cli.trace {
trace::close();
}

do_run_test(
let res = do_run_test(
&moonc_opt,
&moonbuild_opt,
build_only,
auto_update,
&module,
verbose,
)
);

if cli.trace {
trace::close();
}

res
}

fn do_run_test(
Expand Down

0 comments on commit 583a5ef

Please sign in to comment.