11// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
22
3- #![ allow( clippy:: print_stdout) ]
4- #![ allow( clippy:: print_stderr) ]
5-
63use std:: collections:: HashMap ;
74use std:: env;
85use std:: io:: Write ;
@@ -302,7 +299,10 @@ async fn get_tcp_listener_stream(
302299 . collect :: < Vec < _ > > ( ) ;
303300
304301 // Eye catcher for HttpServerCount
305- println ! ( "ready: {name} on {:?}" , addresses) ;
302+ #[ allow( clippy:: print_stdout) ]
303+ {
304+ println ! ( "ready: {name} on {:?}" , addresses) ;
305+ }
306306
307307 futures:: stream:: select_all ( listeners)
308308}
@@ -345,7 +345,10 @@ struct HttpServerStarter {
345345
346346impl Default for HttpServerStarter {
347347 fn default ( ) -> Self {
348- println ! ( "test_server starting..." ) ;
348+ #[ allow( clippy:: print_stdout) ]
349+ {
350+ println ! ( "test_server starting..." ) ;
351+ }
349352 let mut test_server = Command :: new ( test_server_path ( ) )
350353 . current_dir ( testdata_path ( ) )
351354 . stdout ( Stdio :: piped ( ) )
@@ -360,7 +363,6 @@ impl Default for HttpServerStarter {
360363 let mut ready_count = 0 ;
361364 for maybe_line in lines {
362365 if let Ok ( line) = maybe_line {
363- eprintln ! ( "LINE: {}" , line) ;
364366 if line. starts_with ( "ready:" ) {
365367 ready_count += 1 ;
366368 }
@@ -480,6 +482,7 @@ pub fn run_collect(
480482 } = prog. wait_with_output ( ) . expect ( "failed to wait on child" ) ;
481483 let stdout = String :: from_utf8 ( stdout) . unwrap ( ) ;
482484 let stderr = String :: from_utf8 ( stderr) . unwrap ( ) ;
485+ #[ allow( clippy:: print_stderr) ]
483486 if expect_success != status. success ( ) {
484487 eprintln ! ( "stdout: <<<{stdout}>>>" ) ;
485488 eprintln ! ( "stderr: <<<{stderr}>>>" ) ;
@@ -540,6 +543,7 @@ pub fn run_and_collect_output_with_args(
540543 } = deno. wait_with_output ( ) . expect ( "failed to wait on child" ) ;
541544 let stdout = String :: from_utf8 ( stdout) . unwrap ( ) ;
542545 let stderr = String :: from_utf8 ( stderr) . unwrap ( ) ;
546+ #[ allow( clippy:: print_stderr) ]
543547 if expect_success != status. success ( ) {
544548 eprintln ! ( "stdout: <<<{stdout}>>>" ) ;
545549 eprintln ! ( "stderr: <<<{stderr}>>>" ) ;
@@ -564,6 +568,7 @@ pub fn deno_cmd_with_deno_dir(deno_dir: &TempDir) -> TestCommandBuilder {
564568 . env ( "JSR_URL" , jsr_registry_unset_url ( ) )
565569}
566570
571+ #[ allow( clippy:: print_stdout) ]
567572pub fn run_powershell_script_file (
568573 script_file_path : & str ,
569574 args : Vec < & str > ,
@@ -655,6 +660,7 @@ impl<'a> CheckOutputIntegrationTest<'a> {
655660}
656661
657662pub fn wildcard_match ( pattern : & str , text : & str ) -> bool {
663+ #[ allow( clippy:: print_stderr) ]
658664 match wildcard_match_detailed ( pattern, text) {
659665 WildcardMatchResult :: Success => true ,
660666 WildcardMatchResult :: Fail ( debug_output) => {
0 commit comments