fix(ci): skip init smoke test in non-TTY CI environments (#1172)
The init command requires interactive/TTY mode which isn't available in CI containers. Skip the test with a clear message when both stdin is not a TTY and CI env var is set. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
880d9ced3a
commit
06508b3666
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,12 @@ import { mkdtempSync, existsSync, rmSync } from "fs";
|
|||
import { join } from "path";
|
||||
import { tmpdir } from "os";
|
||||
|
||||
// Skip in non-TTY environments (CI containers) — init requires interactive mode
|
||||
if (!process.stdin.isTTY && process.env.CI) {
|
||||
console.log(" SKIP test-init (no TTY in CI)");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const tmpDir = mkdtempSync(join(tmpdir(), "gsd-smoke-init-"));
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue