summaryrefslogtreecommitdiff
path: root/tools/is_tty_test.py
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-02-12 02:57:26 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-02-11 12:57:26 -0500
commitd26655371b796cf5dad762d1b7154c25251cb41d (patch)
tree756f7710b86d2678fbdc2434ae1630741c19edc6 /tools/is_tty_test.py
parent90c7af27d7959e94a25f635e21b8d77cb347e135 (diff)
fix: improve formatting (#1732)
Diffstat (limited to 'tools/is_tty_test.py')
-rwxr-xr-xtools/is_tty_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/is_tty_test.py b/tools/is_tty_test.py
index 218e7f620..867fd7a1c 100755
--- a/tools/is_tty_test.py
+++ b/tools/is_tty_test.py
@@ -10,15 +10,18 @@ from permission_prompt_test import tty_capture
IS_TTY_TEST_TS = "tests/is_tty.ts"
+
def is_tty_test(deno_exe):
cmd = [deno_exe, IS_TTY_TEST_TS]
code, stdout, _ = tty_capture(cmd, b'')
assert code == 0
assert str(stdin.isatty()).lower() in stdout
+
def main():
deno_exe = os.path.join(build_path(), "deno" + executable_suffix)
is_tty_test(deno_exe)
+
if __name__ == "__main__":
main()