Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
ry authored and piscisaureus committed Jan 15, 2019
1 parent 1febd93 commit 319e82d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tools/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
import re
import sys
import subprocess
from util import pattern_match, green_ok, red_failed

root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
tests_path = os.path.join(root_path, "tests")
from util import root_path, tests_path, pattern_match, green_ok, red_failed


def read_test(file_name):
Expand Down
8 changes: 4 additions & 4 deletions tools/prefetch_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import os
import sys
from util import run_output, build_path, executable_suffix, green_ok
from util import tests_path, run_output, build_path, executable_suffix, green_ok
import tempfile
import shutil

Expand All @@ -13,9 +13,9 @@ def prefetch_test(deno_exe):

deno_dir = tempfile.mkdtemp()
try:
output = run_output(
[deno_exe, "--prefetch", "tests/006_url_imports.ts"],
env={"DENO_DIR": deno_dir})
t = os.path.join(tests_path, "006_url_imports.ts")
output = run_output([deno_exe, "--prefetch", t],
env={"DENO_DIR": deno_dir})
assert output == ""
# Check that we actually did the prefetch.
os.path.exists(
Expand Down
1 change: 1 addition & 0 deletions tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

executable_suffix = ".exe" if os.name == "nt" else ""
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
tests_path = os.path.join(root_path, "tests")


def make_env(merge_env=None, env=None):
Expand Down

0 comments on commit 319e82d

Please sign in to comment.