[INFO] fetching crate patsh 0.2.1... [INFO] testing patsh-0.2.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [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 caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.48.4 [INFO] [stderr] Downloaded tempfile v3.7.1 [INFO] [stderr] Downloaded anstyle-wincon v1.0.2 [INFO] [stderr] Downloaded expect-test v1.4.1 [INFO] [stderr] Downloaded dissimilar v1.0.7 [INFO] [stderr] Downloaded cc v1.0.82 [INFO] [stderr] Downloaded serde v1.0.183 [INFO] [stderr] Downloaded clap v4.3.22 [INFO] [stderr] Downloaded errno v0.3.2 [INFO] [stderr] Downloaded is_executable v1.0.1 [INFO] [stderr] Downloaded clap_builder v4.3.22 [INFO] [stderr] Downloaded regex v1.9.3 [INFO] [stderr] Downloaded tree-sitter-bash v0.20.0 [INFO] [stderr] Downloaded rustix v0.38.8 [INFO] [stderr] Downloaded bstr v1.6.0 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.48.4 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.48.4 [INFO] [stderr] Downloaded regex-automata v0.3.6 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.48.4 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.48.4 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.48.4 [INFO] [stderr] Downloaded windows_i686_msvc v0.48.4 [INFO] [stderr] Downloaded windows_i686_gnu v0.48.4 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eaf4e233c123500ececb5588e70040fbfb81c31a594eca0832e1ff0f949785d9 [INFO] running `Command { std: "docker" "start" "-a" "eaf4e233c123500ececb5588e70040fbfb81c31a594eca0832e1ff0f949785d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaf4e233c123500ececb5588e70040fbfb81c31a594eca0832e1ff0f949785d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaf4e233c123500ececb5588e70040fbfb81c31a594eca0832e1ff0f949785d9", kill_on_drop: false }` [INFO] [stdout] eaf4e233c123500ececb5588e70040fbfb81c31a594eca0832e1ff0f949785d9 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20565dd60dd9690f023b826ace6886413478f96ca7340fb3437a40daddf907c1 [INFO] running `Command { std: "docker" "start" "-a" "20565dd60dd9690f023b826ace6886413478f96ca7340fb3437a40daddf907c1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling shell-escape v0.1.5 [INFO] [stderr] Compiling is_executable v1.0.1 [INFO] [stderr] Compiling aho-corasick v1.0.4 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling cc v1.0.82 [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 v4.3.22 [INFO] [stderr] Compiling patsh v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.08s [INFO] running `Command { std: "docker" "inspect" "20565dd60dd9690f023b826ace6886413478f96ca7340fb3437a40daddf907c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20565dd60dd9690f023b826ace6886413478f96ca7340fb3437a40daddf907c1", kill_on_drop: false }` [INFO] [stdout] 20565dd60dd9690f023b826ace6886413478f96ca7340fb3437a40daddf907c1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 360023d41c318ba2c37fc92647289691394d48a56e76c17e656540a5b20d3130 [INFO] running `Command { std: "docker" "start" "-a" "360023d41c318ba2c37fc92647289691394d48a56e76c17e656540a5b20d3130", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling doc-comment v0.3.3 [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 fastrand v2.0.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling dissimilar v1.0.7 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling expect-test v1.4.1 [INFO] [stderr] Compiling predicates v3.0.3 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling bstr v1.6.0 [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 tree-sitter v0.20.10 [INFO] [stderr] Compiling clap_builder v4.3.22 [INFO] [stderr] Compiling tree-sitter-bash v0.20.0 [INFO] [stderr] Compiling assert_cmd v2.0.12 [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 16.06s [INFO] running `Command { std: "docker" "inspect" "360023d41c318ba2c37fc92647289691394d48a56e76c17e656540a5b20d3130", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "360023d41c318ba2c37fc92647289691394d48a56e76c17e656540a5b20d3130", kill_on_drop: false }` [INFO] [stdout] 360023d41c318ba2c37fc92647289691394d48a56e76c17e656540a5b20d3130 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] db64b9fc1ae687379f32ced63c2b520471d830ab1a7e0f5ebce8fd13de9b74ad [INFO] running `Command { std: "docker" "start" "-a" "db64b9fc1ae687379f32ced63c2b520471d830ab1a7e0f5ebce8fd13de9b74ad", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/patsh-62563c297dff9cff) [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/debug/deps/patsh-c4c2ebc663f2e56f) [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/debug/deps/tests-cf78c59ba34f03e2) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test basic ... FAILED [INFO] [stdout] test exec ... FAILED [INFO] [stderr] error: test failed, to rerun pass `--test tests` [INFO] [stdout] test escape ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [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] ---- 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] ---- 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.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "db64b9fc1ae687379f32ced63c2b520471d830ab1a7e0f5ebce8fd13de9b74ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db64b9fc1ae687379f32ced63c2b520471d830ab1a7e0f5ebce8fd13de9b74ad", kill_on_drop: false }` [INFO] [stdout] db64b9fc1ae687379f32ced63c2b520471d830ab1a7e0f5ebce8fd13de9b74ad