0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00

fmt_test: resolve old absolute path issue (#2562)

This commit is contained in:
Yoshiya Hinosawa 2019-06-22 23:21:39 +09:00 committed by Ryan Dahl
parent 642eaf97c6
commit 201ddd29a7

View file

@ -23,13 +23,8 @@ class TestFmt(DenoTestCase):
# fetch it instead through tools/http_server.py.
deno_dir = d
# TODO(kt3k) Below can be run([deno_exe, "fmt", dst], ...)
# once the following issue is addressed:
# https://github.com/denoland/deno_std/issues/330
result = run_output([
os.path.join(root_path, self.deno_exe), "fmt",
"badly_formatted.js"
],
result = run_output(
[os.path.join(root_path, self.deno_exe), "fmt", dst],
cwd=d,
merge_env={"DENO_DIR": deno_dir},
exit_on_fail=True,