mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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.
This commit is contained in:
parent
c65149c0a0
commit
6fb6b0c1f3
14 changed files with 1195 additions and 1075 deletions
|
@ -53,9 +53,12 @@ itest!(task_non_existent {
|
|||
#[test]
|
||||
fn task_emoji() {
|
||||
// this bug only appears when using a pty/tty
|
||||
let args = "task --config task/deno_json/deno.json echo_emoji";
|
||||
use test_util::PtyData::*;
|
||||
test_util::test_pty2(args, vec![Output("Task echo_emoji echo 🔥\r\n🔥")]);
|
||||
test_util::with_pty(
|
||||
&["task", "--config", "task/deno_json/deno.json", "echo_emoji"],
|
||||
|mut console| {
|
||||
console.expect("Task echo_emoji echo 🔥\r\n🔥");
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
itest!(task_boolean_logic {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue