From 6fb6b0c1f302e8637c96131c9ffc4c4b9f3f5f0f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 28 Mar 2023 17:49:00 -0400 Subject: chore: restore pty tests and make them run on the Linux CI (#18424) 1. Rewrites the tests to be more back and forth rather than getting the output all at once (which I believe was causing the hangs on linux and maybe mac) 2. Runs the pty tests on the linux ci. 3. Fixes a bunch of tests that were just wrong. 4. Adds timeouts on the pty tests. --- cli/tests/integration/test_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/tests/integration/test_tests.rs') diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index 107d137e7..3a7f37db8 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -446,6 +446,8 @@ itest!(parallel_output { }); #[test] +// todo(#18480): re-enable +#[ignore] fn sigint_with_hanging_test() { util::with_pty( &[ @@ -457,9 +459,10 @@ fn sigint_with_hanging_test() { |mut console| { std::thread::sleep(std::time::Duration::from_secs(1)); console.write_line("\x03"); + let text = console.read_until("hanging_test.ts:10:15"); wildcard_match( include_str!("../testdata/test/sigint_with_hanging_test.out"), - &console.read_all_output(), + &text, ); }, ); -- cgit v1.2.3