summaryrefslogtreecommitdiff
path: root/tools/complex_permissions_test.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-10-04 20:28:51 -0400
committerGitHub <noreply@github.com>2019-10-04 20:28:51 -0400
commitb81e5db17aa8b3088d6034ddf86b79c69410f012 (patch)
tree579e4c23d60d1b0d038156bc28a04f74ea87b2f0 /tools/complex_permissions_test.py
parent9049213867d30f7df090a83b6baf3e0717a4d2d2 (diff)
Merge deno_cli_snapshots into deno_cli (#3064)
Diffstat (limited to 'tools/complex_permissions_test.py')
-rwxr-xr-xtools/complex_permissions_test.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/complex_permissions_test.py b/tools/complex_permissions_test.py
index 985f9a972..9f0fcd7e7 100755
--- a/tools/complex_permissions_test.py
+++ b/tools/complex_permissions_test.py
@@ -55,7 +55,8 @@ class BaseReadWritePermissionsTest(object):
def test_outside_test_and_js_dir(self):
code, _stdout, stderr = self._run_deno([
"--allow-" + self.test_type + "=" + os.path.join(
- root_path, "cli/tests") + "," + os.path.join(root_path, "js")
+ root_path, "cli/tests") + "," + os.path.join(
+ root_path, "cli/js")
], [self.test_type, "package.json"])
assert code == 1
assert PROMPT_PATTERN not in stderr
@@ -64,8 +65,12 @@ class BaseReadWritePermissionsTest(object):
def test_inside_test_and_js_dir(self):
code, _stdout, stderr = self._run_deno([
"--allow-" + self.test_type + "=" + os.path.join(
- root_path, "cli/tests") + "," + os.path.join(root_path, "js")
- ], [self.test_type, "js/dir_test.ts", "cli/tests/subdir/config.json"])
+ root_path, "cli/tests") + "," + os.path.join(
+ root_path, "cli/js")
+ ], [
+ self.test_type, "cli/js/dir_test.ts",
+ "cli/tests/subdir/config.json"
+ ])
assert code == 0
assert PROMPT_PATTERN not in stderr
assert PERMISSION_DENIED_PATTERN not in stderr