diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-15 16:46:42 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-16 09:37:38 -0400 |
commit | 590feb1c7145bc2bca926241e14d00f066fadf90 (patch) | |
tree | 476935959d5e47332bc281aa1a2b7dd07795ccef /tools/unit_tests.py | |
parent | 1322f3de9f60f86a9c4421169d84e7c7145c3e3b (diff) |
Format
Diffstat (limited to 'tools/unit_tests.py')
-rwxr-xr-x | tools/unit_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/unit_tests.py b/tools/unit_tests.py index 14f1d18b7..78b4d77c1 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -4,6 +4,7 @@ import sys import subprocess import re + def run_unit_test2(cmd): process = subprocess.Popen( cmd, @@ -26,6 +27,7 @@ def run_unit_test2(cmd): if errcode != 0: sys.exit(errcode) + def run_unit_test(deno_exe, permStr, flags=[]): cmd = [deno_exe, "--reload", "js/unit_tests.ts", permStr] + flags run_unit_test2(cmd) @@ -48,9 +50,7 @@ def unit_tests(deno_exe): # These are not strictly unit tests for Deno, but for ts_library_builder. # They run under Node, but use the same //js/testing/ library. run_unit_test2([ - "node", - "./node_modules/.bin/ts-node", - "--project", + "node", "./node_modules/.bin/ts-node", "--project", "tools/ts_library_builder/tsconfig.json", "tools/ts_library_builder/test.ts" ]) |