diff options
Diffstat (limited to 'tools/fmt_test.py')
-rwxr-xr-x | tools/fmt_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/fmt_test.py b/tools/fmt_test.py index 95733dc20..c8eb83399 100755 --- a/tools/fmt_test.py +++ b/tools/fmt_test.py @@ -18,7 +18,9 @@ def fmt_test(deno_exe): # Set DENO_DIR to //js/ so we don't have to rely on an intenet # connection to download https://deno.land/x/std/prettier/main.ts deno_dir = os.path.join(root_path, "js") - run([deno_exe, dst, "--fmt"], merge_env={"DENO_DIR": deno_dir}) + run( + [deno_exe, dst, "--fmt", "--allow-read"], + merge_env={"DENO_DIR": deno_dir}) with open(fixed_filename) as f: expected = f.read() with open(dst) as f: @@ -31,4 +33,3 @@ def fmt_test(deno_exe): if __name__ == "__main__": fmt_test(sys.argv[1]) - |