|
@@ -342,6 +342,12 @@ fn logs_follow_cmd_format() {
|
|
|
assert!(cmd.contains("--filter \"label=sm121.rank=0\""));
|
|
assert!(cmd.contains("--filter \"label=sm121.rank=0\""));
|
|
|
// Follow should not include --tail (we want a live stream from now).
|
|
// Follow should not include --tail (we want a live stream from now).
|
|
|
assert!(!cmd.contains("--tail"));
|
|
assert!(!cmd.contains("--tail"));
|
|
|
|
|
+ // Follow must redirect stderr so docker's own errors are captured
|
|
|
|
|
+ // (mirrors the behaviour of logs_tail_cmd).
|
|
|
|
|
+ assert!(
|
|
|
|
|
+ cmd.contains("2>&1"),
|
|
|
|
|
+ "follow cmd must capture stderr, got: {cmd}"
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ── Shell quoting ─────────────────────────────────────────────
|
|
// ── Shell quoting ─────────────────────────────────────────────
|