diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-04-25 19:47:33 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-25 13:47:33 -0400 |
| commit | b7d8a0c6f6e90a65243264faa3f702d1a9471090 (patch) | |
| tree | 0f1429e5ba36698179b7d24a21642e11e4e83d50 /tools/prefetch_test.py | |
| parent | 098d6fffabb85d102b3662dacf3173c47e551d34 (diff) | |
Rename deno prefetch to deno fetch (#2210)
Diffstat (limited to 'tools/prefetch_test.py')
| -rwxr-xr-x | tools/prefetch_test.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/prefetch_test.py b/tools/prefetch_test.py deleted file mode 100755 index 9c671dc00..000000000 --- a/tools/prefetch_test.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import os -import sys -from util import mkdtemp, tests_path, run_output, green_ok -import shutil - - -def prefetch_test(deno_exe): - sys.stdout.write("prefetch_test...") - sys.stdout.flush() - - deno_dir = mkdtemp() - try: - t = os.path.join(tests_path, "006_url_imports.ts") - output = run_output([deno_exe, "prefetch", t], - merge_env={"DENO_DIR": deno_dir}) - assert output == "" - # Check that we actually did the prefetch. - os.path.exists( - os.path.join(deno_dir, - "deps/http/localhost_PORT4545/tests/subdir/mod2.ts")) - finally: - shutil.rmtree(deno_dir) - - print green_ok() - - -if __name__ == "__main__": - prefetch_test(sys.argv[1]) |
