diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-04-18 20:08:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 21:08:30 +0200 |
| commit | 66fbdd2ed4b5ecab8a51278cd76bce7adedb4fc2 (patch) | |
| tree | 55e38ace63362cb49ac8cf9a5f66594a04770335 /cli/tests/testdata | |
| parent | bf804d3ffff39dab3c7fc8a1a91538ec51276223 (diff) | |
feat: Add DENO_NO_PROMPT variable (#14209)
This commit adds support for "DENO_NO_PROMPT" env
variable, that can be used instead of "--no-prompt" flag
to completely disable permission prompts.
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/bench/no_prompt_by_default.out | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/bench/no_prompt_with_denied_perms.out | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/no_prompt.ts | 10 | ||||
| -rw-r--r-- | cli/tests/testdata/test/no_prompt_by_default.out | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/test/no_prompt_with_denied_perms.out | 1 |
5 files changed, 10 insertions, 4 deletions
diff --git a/cli/tests/testdata/bench/no_prompt_by_default.out b/cli/tests/testdata/bench/no_prompt_by_default.out index 3fe67b720..d47198d85 100644 --- a/cli/tests/testdata/bench/no_prompt_by_default.out +++ b/cli/tests/testdata/bench/no_prompt_by_default.out @@ -1,4 +1,3 @@ -Check [WILDCARD]no_prompt_by_default.ts running 1 bench from [WILDCARD]no_prompt_by_default.ts bench no prompt ... 1000 iterations FAILED ([WILDCARD]ms) diff --git a/cli/tests/testdata/bench/no_prompt_with_denied_perms.out b/cli/tests/testdata/bench/no_prompt_with_denied_perms.out index f6aec6226..efe9fa6dc 100644 --- a/cli/tests/testdata/bench/no_prompt_with_denied_perms.out +++ b/cli/tests/testdata/bench/no_prompt_with_denied_perms.out @@ -1,4 +1,3 @@ -Check [WILDCARD]/no_prompt_with_denied_perms.ts running 1 bench from [WILDCARD]/no_prompt_with_denied_perms.ts bench no prompt ... 1000 iterations FAILED ([WILDCARD]ms) diff --git a/cli/tests/testdata/no_prompt.ts b/cli/tests/testdata/no_prompt.ts new file mode 100644 index 000000000..88dccc458 --- /dev/null +++ b/cli/tests/testdata/no_prompt.ts @@ -0,0 +1,10 @@ +new Worker("data:,setTimeout(() => Deno.exit(2), 200)", { + type: "module", + deno: { namespace: true }, +}); + +try { + await Deno.run({ cmd: ["ps"] }); +} catch { + Deno.exit(0); +} diff --git a/cli/tests/testdata/test/no_prompt_by_default.out b/cli/tests/testdata/test/no_prompt_by_default.out index 705aca689..61fcea8c8 100644 --- a/cli/tests/testdata/test/no_prompt_by_default.out +++ b/cli/tests/testdata/test/no_prompt_by_default.out @@ -1,4 +1,3 @@ -Check [WILDCARD]/no_prompt_by_default.ts running 1 test from ./test/no_prompt_by_default.ts no prompt ... FAILED ([WILDCARD]ms) diff --git a/cli/tests/testdata/test/no_prompt_with_denied_perms.out b/cli/tests/testdata/test/no_prompt_with_denied_perms.out index d80fb304c..16a2092c5 100644 --- a/cli/tests/testdata/test/no_prompt_with_denied_perms.out +++ b/cli/tests/testdata/test/no_prompt_with_denied_perms.out @@ -1,4 +1,3 @@ -Check [WILDCARD]/no_prompt_with_denied_perms.ts running 1 test from ./test/no_prompt_with_denied_perms.ts no prompt ... FAILED ([WILDCARD]ms) |
