From 8cbb8de55ffd201f990bcb083dee17b380450367 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sat, 22 Jun 2019 17:33:54 +0900 Subject: [PATCH] fmt_test: resolve old absolute path issue --- tools/fmt_test.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tools/fmt_test.py b/tools/fmt_test.py index 99abb2c9ef5469..ca7cc7c208c099 100755 --- a/tools/fmt_test.py +++ b/tools/fmt_test.py @@ -23,17 +23,12 @@ def test_fmt(self): # 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" - ], - cwd=d, - merge_env={"DENO_DIR": deno_dir}, - exit_on_fail=True, - quiet=True) + 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, + quiet=True) self.assertEqual(result.code, 0) with open(fixed_filename) as f: expected = f.read()