diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-05-28 16:33:32 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-29 07:53:39 -0400 |
commit | 64d2b7bc90cf6fdba661d6d3fe243fe332c076ee (patch) | |
tree | 1b91086c0e402e099ba8820df36bb6b98138f9cb /tools/fmt_test.py | |
parent | 53b6356ec5eac1c84610c2d2e75b527485c47f3c (diff) |
Change tools/fmt_test.py to always download prettier
This is to ensure a more fair test. Also we were already downloading
from the internet since we changed the URL to use std@v0.5.0. This
change exposes an OOM bug, which is then fixed in the upcoming compiler
refactor by changing checkJs compiler option to false.
Diffstat (limited to 'tools/fmt_test.py')
-rwxr-xr-x | tools/fmt_test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/fmt_test.py b/tools/fmt_test.py index 042dd8a64..a4fb072f9 100755 --- a/tools/fmt_test.py +++ b/tools/fmt_test.py @@ -16,9 +16,12 @@ def fmt_test(deno_exe): src = os.path.join(tests_path, "badly_formatted.js") dst = os.path.join(d, "badly_formatted.js") shutil.copyfile(src, dst) - # Set DENO_DIR to //js/ so we don't have to rely on an intenet - # connection to download https://deno.land/std/prettier/main.ts - deno_dir = os.path.join(root_path, "js") + # Set DENO_DIR to the temp dir so we test an initial fetch of prettier. + # TODO(ry) This make the test depend on internet access which is not + # ideal. We should have prettier in the repo already, and we could + # fetch it instead through tools/http_server.py. + deno_dir = d + # TODO(kt3k) The below line should be run([deno_exe, "fmt", dst], ...) # It should be updated when the below issue is addressed # https://github.com/denoland/deno_std/issues/330 |