aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/run_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 8de0cb4..ebf9c80 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -69,12 +69,14 @@ def run_test_prog(bits, pagesize, cmd, **env):
% (bits, bits, local_env.get("LD_LIBRARY_PATH", ""))
local_env["HUGETLB_DEFAULT_PAGE_SIZE"] = repr(pagesize)
- p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE)
try:
+ p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE)
rc = p.wait()
except KeyboardInterrupt:
# Abort and mark this a strange test result
return (None, "")
+ except OSError:
+ return (None, "")
out = p.stdout.read().strip()
if paranoid_pool_check: