[INFO] fetching crate patsh 0.2.1... [INFO] testing patsh-0.2.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate patsh 0.2.1 into /workspace/builds/worker-3-tc2/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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate patsh 0.2.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50ccddf5b1a2664fd080747cfac91c08bd881e2ec978bce150a5a0c87e3ddec4 [INFO] running `Command { std: "docker" "start" "-a" "50ccddf5b1a2664fd080747cfac91c08bd881e2ec978bce150a5a0c87e3ddec4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50ccddf5b1a2664fd080747cfac91c08bd881e2ec978bce150a5a0c87e3ddec4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50ccddf5b1a2664fd080747cfac91c08bd881e2ec978bce150a5a0c87e3ddec4", kill_on_drop: false }` [INFO] [stdout] 50ccddf5b1a2664fd080747cfac91c08bd881e2ec978bce150a5a0c87e3ddec4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3de1cae299a7463e08ff5246595b88aebad0d85567dc3198cbc7e4c77a895c74 [INFO] running `Command { std: "docker" "start" "-a" "3de1cae299a7463e08ff5246595b88aebad0d85567dc3198cbc7e4c77a895c74", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling linux-raw-sys v0.4.5 [INFO] [stderr] Compiling rustix v0.37.23 [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 anstyle-query v1.0.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling anstyle-parse v0.2.1 [INFO] [stderr] Compiling anstyle v1.0.1 [INFO] [stderr] Compiling aho-corasick v1.0.4 [INFO] [stderr] Compiling colorchoice v1.0.0 [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 is-terminal v0.4.9 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling anstream v0.3.2 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling tree-sitter-bash v0.20.0 [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.14s [INFO] running `Command { std: "docker" "inspect" "3de1cae299a7463e08ff5246595b88aebad0d85567dc3198cbc7e4c77a895c74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3de1cae299a7463e08ff5246595b88aebad0d85567dc3198cbc7e4c77a895c74", kill_on_drop: false }` [INFO] [stdout] 3de1cae299a7463e08ff5246595b88aebad0d85567dc3198cbc7e4c77a895c74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0dafd74bf38dfaa9740bb202f0e941e4c635f49d924c150a0ba7d87589fbe160 [INFO] running `Command { std: "docker" "start" "-a" "0dafd74bf38dfaa9740bb202f0e941e4c635f49d924c150a0ba7d87589fbe160", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling either v1.9.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 itertools v0.10.5 [INFO] [stderr] Compiling expect-test v1.4.1 [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 9.48s [INFO] running `Command { std: "docker" "inspect" "0dafd74bf38dfaa9740bb202f0e941e4c635f49d924c150a0ba7d87589fbe160", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dafd74bf38dfaa9740bb202f0e941e4c635f49d924c150a0ba7d87589fbe160", kill_on_drop: false }` [INFO] [stdout] 0dafd74bf38dfaa9740bb202f0e941e4c635f49d924c150a0ba7d87589fbe160 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 89d76fa5273162ea1b60584fc3d9902dfb1861c02c339c980f814b71ceece8fe [INFO] running `Command { std: "docker" "start" "-a" "89d76fa5273162ea1b60584fc3d9902dfb1861c02c339c980f814b71ceece8fe", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [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] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-cf78c59ba34f03e2) [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] [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.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test tests` [INFO] running `Command { std: "docker" "inspect" "89d76fa5273162ea1b60584fc3d9902dfb1861c02c339c980f814b71ceece8fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89d76fa5273162ea1b60584fc3d9902dfb1861c02c339c980f814b71ceece8fe", kill_on_drop: false }` [INFO] [stdout] 89d76fa5273162ea1b60584fc3d9902dfb1861c02c339c980f814b71ceece8fe