Since the cmd_path was hard coded as "target/debug/cargo-deb" in tests/command.rs:161:5, any cargo test commands with specific target will fail, like cargo test --target=x86_64-unknown-linux-gnu or even cargo test --release.
The cmd_path for cargo test --release should be "target/release/cargo-deb".
The cmd_path for cargo test --target=x86_64-unknown-linux-gnu should be "target/x86_64_unknown-linux-gnu/debug/cargo-deb".
Since the
cmd_path
was hard coded as"target/debug/cargo-deb"
in tests/command.rs:161:5, anycargo test
commands with specific target will fail, likecargo test --target=x86_64-unknown-linux-gnu
or evencargo test --release
.cmd_path
forcargo test --release
should be"target/release/cargo-deb"
.cmd_path
forcargo test --target=x86_64-unknown-linux-gnu
should be"target/x86_64_unknown-linux-gnu/debug/cargo-deb"
.