Enforce env permission on homeDir() and execPath (#2714)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-08-03 18:34:13 -07:00 committed by Ryan Dahl
parent c6861b537e
commit 52c13fb3ed
4 changed files with 40 additions and 10 deletions

View file

@ -55,7 +55,10 @@ class TestTarget(DenoTestCase):
assert result.out.strip() == "noColor false"
def test_exec_path(self):
cmd = [self.deno_exe, "run", "--allow-run", "tests/exec_path.ts"]
cmd = [
self.deno_exe, "run", "--allow-run", "--allow-env",
"tests/exec_path.ts"
]
result = run_output(cmd, quiet=True)
print "exec_path", result.code
print result.out