[Piglit] [PATCH] framework/tests/deqp.py: hide 'dumping caselist' dialog.

Dylan Baker baker.dylan.c at gmail.com
Thu Sep 24 14:46:51 PDT 2015


No one wants to see this, it isn't useful, and it produces a bunch of
clutter, so just send it to /dev/null (or your OS's equivalent).

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/test/deqp.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/framework/test/deqp.py b/framework/test/deqp.py
index 8641e45..8290faf 100644
--- a/framework/test/deqp.py
+++ b/framework/test/deqp.py
@@ -82,8 +82,10 @@ def gen_caselist_txt(bin_, caselist, extra_args):
     caselist_path = os.path.join(basedir, caselist)
 
     # TODO: need to catch some exceptions here...
-    subprocess.check_call(
-        [bin_, '--deqp-runmode=txt-caselist'] + extra_args, cwd=basedir)
+    with open(os.devnull, 'w') as d:
+        subprocess.check_call(
+            [bin_, '--deqp-runmode=txt-caselist'] + extra_args, cwd=basedir,
+            stdout=d, stderr=d)
     assert os.path.exists(caselist_path)
     return caselist_path
 
-- 
2.5.3



More information about the Piglit mailing list