fix(coverage): ensure coverage is only collected in certain situations (#15467)

This commit is contained in:
David Sherret 2022-08-12 15:21:17 -04:00 committed by GitHub
parent ee2f4e745c
commit 8eed24cd3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 12 deletions

View file

@ -774,7 +774,7 @@ async fn run_command(
run_flags: RunFlags,
) -> Result<i32, AnyError> {
// Read script content from stdin
if run_flags.script == "-" {
if run_flags.is_stdin() {
return run_from_stdin(flags).await;
}