summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-08-03 18:34:13 -0700
committerRyan Dahl <ry@tinyclouds.org>2019-08-03 21:34:13 -0400
commit52c13fb3ed94e41d90bbe08d1bc299ca90505755 (patch)
treea3d1f90da7a4febab0f1fd1adb4e8c85ec40db80 /tools
parentc6861b537ead4bba21817610664d68ffbe7daad5 (diff)
Enforce env permission on homeDir() and execPath (#2714)
Diffstat (limited to 'tools')
-rw-r--r--tools/target_test.py5
-rwxr-xr-xtools/unit_tests.py2
2 files changed, 5 insertions, 2 deletions
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(