Skip to content

Commit

Permalink
fmt_test: resolve old absolute path issue (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored and ry committed Jun 22, 2019
1 parent 642eaf9 commit 201ddd2
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions tools/fmt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 201ddd2

Please sign in to comment.