summaryrefslogtreecommitdiff
path: root/tools/repl_test.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-30 03:27:41 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-11-30 11:33:45 -0800
commitc5d8cf8eb6a6e84347b9379945f308f29a2fe5cb (patch)
tree306901036624b604e0d7d7c0e33c6d10ec39b713 /tools/repl_test.py
parentd43a4be0d291d2cb1fb4f5a9353b509e87f849eb (diff)
Use pylint.
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()