[INFO] fetching crate patsh 0.2.1... [INFO] testing patsh-0.2.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate patsh 0.2.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate patsh 0.2.1 [INFO] finished tweaking crates.io crate patsh 0.2.1 [INFO] tweaked toml for crates.io crate patsh 0.2.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate patsh 0.2.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate patsh 0.2.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded expect-test v1.4.1 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [INFO] [stderr] Downloaded tree-sitter-bash v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07d7b5477a0b7d36dd7499f065a0feec2d4f40dbd489b7c46fe7b79d33155a18 [INFO] running `Command { std: "docker" "start" "-a" "07d7b5477a0b7d36dd7499f065a0feec2d4f40dbd489b7c46fe7b79d33155a18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07d7b5477a0b7d36dd7499f065a0feec2d4f40dbd489b7c46fe7b79d33155a18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07d7b5477a0b7d36dd7499f065a0feec2d4f40dbd489b7c46fe7b79d33155a18", kill_on_drop: false }` [INFO] [stdout] 07d7b5477a0b7d36dd7499f065a0feec2d4f40dbd489b7c46fe7b79d33155a18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4edc8e4e8bf3e3113fc685b5b93f08704a639762f17ef10c9c388e9ba2dad551 [INFO] running `Command { std: "docker" "start" "-a" "4edc8e4e8bf3e3113fc685b5b93f08704a639762f17ef10c9c388e9ba2dad551", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Compiling linux-raw-sys v0.4.5 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling anstyle v1.0.1 [INFO] [stderr] Compiling aho-corasick v1.0.4 [INFO] [stderr] Compiling anstyle-parse v0.2.1 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling clap_lex v0.5.0 [INFO] [stderr] Compiling shell-escape v0.1.5 [INFO] [stderr] Compiling is_executable v1.0.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling anstream v0.3.2 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-bash v0.20.0 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling terminal_size v0.2.6 [INFO] [stderr] Compiling clap_builder v4.3.22 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling clap v4.3.22 [INFO] [stderr] Compiling patsh v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.56s [INFO] running `Command { std: "docker" "inspect" "4edc8e4e8bf3e3113fc685b5b93f08704a639762f17ef10c9c388e9ba2dad551", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4edc8e4e8bf3e3113fc685b5b93f08704a639762f17ef10c9c388e9ba2dad551", kill_on_drop: false }` [INFO] [stdout] 4edc8e4e8bf3e3113fc685b5b93f08704a639762f17ef10c9c388e9ba2dad551 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 6e204014515adcf8f748ea5fe11cbe4fbcc8b42739b98f4b0c1e406885a1c0d0 [INFO] running `Command { std: "docker" "start" "-a" "6e204014515adcf8f748ea5fe11cbe4fbcc8b42739b98f4b0c1e406885a1c0d0", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling dissimilar v1.0.7 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling expect-test v1.4.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling predicates v3.0.3 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling tempfile v3.7.1 [INFO] [stderr] Compiling anstream v0.3.2 [INFO] [stderr] Compiling clap_builder v4.3.22 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling bstr v1.6.0 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling assert_cmd v2.0.12 [INFO] [stderr] Compiling tree-sitter-bash v0.20.0 [INFO] [stderr] Compiling clap v4.3.22 [INFO] [stderr] Compiling patsh v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 13.21s [INFO] running `Command { std: "docker" "inspect" "6e204014515adcf8f748ea5fe11cbe4fbcc8b42739b98f4b0c1e406885a1c0d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e204014515adcf8f748ea5fe11cbe4fbcc8b42739b98f4b0c1e406885a1c0d0", kill_on_drop: false }` [INFO] [stdout] 6e204014515adcf8f748ea5fe11cbe4fbcc8b42739b98f4b0c1e406885a1c0d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1649d2e255ff45f41f34d6fd3594352c066fdf53464802874109c06e9e3818e2 [INFO] running `Command { std: "docker" "start" "-a" "1649d2e255ff45f41f34d6fd3594352c066fdf53464802874109c06e9e3818e2", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/patsh-62284caae76f01c7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/patsh-e52d18f918200c3b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/tests-fe1f8ec837a51351) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test exec ... FAILED [INFO] [stdout] test basic ... FAILED [INFO] [stdout] test escape ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- exec stdout ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expect test failed [INFO] [stdout] --> fixtures/exec-expected.sh [INFO] [stdout] [INFO] [stdout] You can update all `expect!` tests by running: [INFO] [stdout] [INFO] [stdout] env UPDATE_EXPECT=1 cargo test [INFO] [stdout] [INFO] [stdout] To update a single test, place the cursor on `expect` token and use `run` feature of rust-analyzer. [INFO] [stdout] [INFO] [stdout] Expect: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] command -p @coreutils@/bin/ls mkdir -v [INFO] [stdout] "command" -pv @coreutils@/bin/mkdir echo [INFO] [stdout] exec @coreutils@/bin/ls [INFO] [stdout] "exec" -a ls @coreutils@/bin/echo mkdir [INFO] [stdout] 'exec' -cla mkdir @coreutils@/bin/ls [INFO] [stdout] type echo [INFO] [stdout] "type" -a @cc@/bin/cc @coreutils@/bin/ls [INFO] [stdout] doas @coreutils@/bin/echo printenv [INFO] [stdout] doas -u nixbld @coreutils@/bin/whoami [INFO] [stdout] sudo --preserve-env -gA @coreutils@/bin/printf ls -a [INFO] [stdout] sudo -Eu id -pH @coreutils@/bin/ls -s [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Actual: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] command -p ls mkdir -v [INFO] [stdout] "command" -pv "/bin/mkdir" echo [INFO] [stdout] exec ls [INFO] [stdout] "exec" -a ls 'echo' mkdir [INFO] [stdout] 'exec' -cla mkdir "ls" [INFO] [stdout] type echo [INFO] [stdout] "type" -a cc ls [INFO] [stdout] doas echo printenv [INFO] [stdout] doas -u nixbld whoami [INFO] [stdout] sudo --preserve-env -gA printf ls -a [INFO] [stdout] sudo -Eu id -pH ls -s [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Diff: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] command -p @coreutils@/bin/ls mkdir -v [INFO] [stdout] "command" -pv @coreutils@"/bin/mkdir" echo [INFO] [stdout] exec @coreutils@/bin/ls [INFO] [stdout] "exec" -a ls @coreutils@/bin/ls [INFO] [stdout] "exec" -a ls 'echo' mkdir [INFO] [stdout] 'exec' -cla mkdir @coreutils@/bin/ls"ls" [INFO] [stdout] type echo [INFO] [stdout] "type" -a @cc@/bin/cc @coreutils@/bin/ls [INFO] [stdout] doas @coreutils@/bin/cc ls [INFO] [stdout] doas echo printenv [INFO] [stdout] doas -u nixbld @coreutils@/bin/whoami [INFO] [stdout] sudo --preserve-env -gA @coreutils@/bin/printf ls -a [INFO] [stdout] sudo -Eu id -pH @coreutils@/bin/ls -s [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- basic stdout ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expect test failed [INFO] [stdout] --> fixtures/basic-expected.sh [INFO] [stdout] [INFO] [stdout] Expect: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] echo foo [INFO] [stdout] if @coreutils@/bin/ls "$(@coreutils@/bin/touch ln)"; then [INFO] [stdout] uname/bar [INFO] [stdout] @coreutils@/bin/true [INFO] [stdout] @cc@/bin/cc baz [INFO] [stdout] fi [INFO] [stdout] [INFO] [stdout] qux/sleep 1 [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Actual: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] echo foo [INFO] [stdout] if ls "$("touch" ln)"; then [INFO] [stdout] uname/bar [INFO] [stdout] '/bin/true' [INFO] [stdout] "/usr/bin/cc" baz [INFO] [stdout] fi [INFO] [stdout] [INFO] [stdout] qux/sleep 1 [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Diff: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] echo foo [INFO] [stdout] if @coreutils@/bin/ls "$(@coreutils@/bin/ls "$("touch" ln)"; then [INFO] [stdout] uname/bar [INFO] [stdout] @coreutils@'/bin/true' [INFO] [stdout] @cc@"/usr/bin/cc" baz [INFO] [stdout] fi [INFO] [stdout] [INFO] [stdout] qux/sleep 1 [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- escape stdout ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expect test failed [INFO] [stdout] --> fixtures/escape-expected.sh [INFO] [stdout] [INFO] [stdout] Expect: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] @coreutils@/bin/ls [INFO] [stdout] "\l\s" [INFO] [stdout] '@custom@/bin/foo"`' [INFO] [stdout] '@custom@/bin/foo"`' [INFO] [stdout] '@custom@/bin/foo$' [INFO] [stdout] '@custom@/bin/foo$' [INFO] [stdout] 'foo\$' [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Actual: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] \l\s [INFO] [stdout] "\l\s" [INFO] [stdout] foo\"\` [INFO] [stdout] "foo\"\`" [INFO] [stdout] "foo$" [INFO] [stdout] 'foo$' [INFO] [stdout] 'foo\$' [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] Diff: [INFO] [stdout] ---- [INFO] [stdout] #!/bin/sh [INFO] [stdout] [INFO] [stdout] @coreutils@/bin/ls [INFO] [stdout] "\l\s" [INFO] [stdout] '@custom@/bin/foo"`' [INFO] [stdout] '@custom@/bin/foo"`' [INFO] [stdout] '@custom@/bin/\l\s [INFO] [stdout] "\l\s" [INFO] [stdout] foo\"\` [INFO] [stdout] "foo\"\`" [INFO] [stdout] "foo$'" [INFO] [stdout] '@custom@/bin/foo$' [INFO] [stdout] 'foo\$' [INFO] [stdout] [INFO] [stdout] ---- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] basic [INFO] [stdout] escape [INFO] [stdout] exec [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test tests` [INFO] running `Command { std: "docker" "inspect" "1649d2e255ff45f41f34d6fd3594352c066fdf53464802874109c06e9e3818e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1649d2e255ff45f41f34d6fd3594352c066fdf53464802874109c06e9e3818e2", kill_on_drop: false }` [INFO] [stdout] 1649d2e255ff45f41f34d6fd3594352c066fdf53464802874109c06e9e3818e2