aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-06 17:21:25 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-07 22:18:21 +0200
commit6e708208ddc870fefde92b22c031575c33bb243b (patch)
tree0eeac1c226d66cb8ce0315362cdcb5ae682d03f8 /mesonbuild/mtest.py
parentd08091756191981f1bd3c7741b412b95f965fe0a (diff)
downloadmeson-6e708208ddc870fefde92b22c031575c33bb243b.zip
meson-6e708208ddc870fefde92b22c031575c33bb243b.tar.gz
meson-6e708208ddc870fefde92b22c031575c33bb243b.tar.bz2
CI: add initial type annotation checking
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 1f52eda..d9652da 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -533,7 +533,7 @@ class SingleTestRunner:
# We don't want setsid() in gdb because gdb needs the
# terminal in order to handle ^C and not show tcsetpgrp()
# errors avoid not being able to use the terminal.
- os.setsid()
+ os.setsid() # type: ignore
p = subprocess.Popen(cmd,
stdout=stdout,
@@ -570,11 +570,11 @@ class SingleTestRunner:
# killing a process and all its children so we need
# to roll our own.
if is_windows():
- subprocess.call(['taskkill', '/F', '/T', '/PID', str(p.pid)])
+ subprocess.run(['taskkill', '/F', '/T', '/PID', str(p.pid)])
else:
try:
# Kill the process group that setsid() created.
- os.killpg(p.pid, signal.SIGKILL)
+ os.killpg(p.pid, signal.SIGKILL) # type: ignore
except ProcessLookupError:
# Sometimes (e.g. with Wine) this happens.
# There's nothing we can do (maybe the process