From f5e7b907a9d8a13f5d242cd099a91a2677582db5 Mon Sep 17 00:00:00 2001 From: CRT Date: Wed, 21 Oct 2026 04:01:41 +0700 Subject: [PATCH] acceptance: storebound api --yes without a terminal is refused (exit 1, nothing sent) since the TTY rule; the cell still expected a silent dry run and turned every acceptance job red --- tools/acceptance.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/acceptance.ts b/tools/acceptance.ts index 8a899b6..d650553 100644 --- a/tools/acceptance.ts +++ b/tools/acceptance.ts @@ -180,7 +180,8 @@ export function cells(forms: string[]): Cell[] { no('play rollout [y/N] n', ['play', 'rollout', '--fraction', '0.2'], NO, { exit: [1, 3], expect: undefined }), // before the release, the phased release is only a setting of the version: no question no('apple release --phased on (version not released yet)', ['apple', 'release', '--phased', 'on'], NO, { exit: 0, expect: /phased release on/, noWrites: false }), - no('api apple POST without a terminal (dry)', ['api', 'apple', 'bundleIds_createInstance', '--body', 'store/bundle.json', '--yes'], 'wrong\n', { exit: 0, expect: /nothing sent/ }), + // --yes without a terminal is refused (exit 1, nothing sent), never a silent dry run + no('api apple POST without a terminal (refused)', ['api', 'apple', 'bundleIds_createInstance', '--body', 'store/bundle.json', '--yes'], 'wrong\n', { exit: 1, expect: /need an interactive terminal.*Nothing was sent/ }), ); return c; }