From 52c13fb3ed94e41d90bbe08d1bc299ca90505755 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Sat, 3 Aug 2019 18:34:13 -0700 Subject: Enforce env permission on homeDir() and execPath (#2714) --- tools/target_test.py | 5 ++++- tools/unit_tests.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/target_test.py b/tools/target_test.py index 58c5d43c7..6ff3c11e8 100644 --- a/tools/target_test.py +++ b/tools/target_test.py @@ -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 diff --git a/tools/unit_tests.py b/tools/unit_tests.py index f8cd1af64..859afcea3 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -10,7 +10,7 @@ from test_util import DenoTestCase, run_tests class JsUnitTests(DenoTestCase): def test_unit_test_runner(self): cmd = [ - self.deno_exe, "run", "--reload", "--allow-run", + self.deno_exe, "run", "--reload", "--allow-run", "--allow-env", "js/unit_test_runner.ts" ] process = subprocess.Popen( -- cgit v1.2.3