2025-10-14 22:18:53 -04:00
|
|
|
# Test that stdout is clean for command substitution when using --no-push
|
|
|
|
|
|
|
|
|
|
-- Cargo.toml --
|
|
|
|
|
[package]
|
|
|
|
|
name = "test-app"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
-- src/main.rs --
|
|
|
|
|
fn main() {
|
|
|
|
|
println!("Hello, world!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# With --no-push, stdout should be empty
|
2025-10-15 11:56:14 -04:00
|
|
|
[linux] exec ./krust build --no-push --platform linux/amd64 .
|
|
|
|
|
[darwin] exec ./krust build --no-push --platform linux/amd64 .
|
2025-10-14 22:18:53 -04:00
|
|
|
! stdout .
|
|
|
|
|
stderr 'Building Rust project'
|
|
|
|
|
stderr 'Successfully built image'
|