summaryrefslogtreecommitdiff
path: root/tools/repl_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/repl_test.py')
-rw-r--r--tools/repl_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/repl_test.py b/tools/repl_test.py
index ce3db8953..afce192f5 100644
--- a/tools/repl_test.py
+++ b/tools/repl_test.py
@@ -35,7 +35,7 @@ class Repl(object):
except CalledProcessError as e:
p.kill()
p.wait()
- raise
+ raise e
retcode = p.poll()
# Ignore Windows CRLF (\r\n).
return out.replace('\r\n', '\n'), err.replace('\r\n', '\n'), retcode
@@ -125,6 +125,10 @@ def repl_tests(deno_exe):
Repl(deno_exe).run()
-if __name__ == "__main__":
+def main():
deno_exe = os.path.join(build_path(), "deno" + executable_suffix)
repl_tests(deno_exe)
+
+
+if __name__ == "__main__":
+ main()