Re: [Piglit] [PATCH] deqp: Search stdout and stderr for X connection failure

2017-01-09 Thread Dylan Baker
Quoting Mark Janes (2017-01-06 16:05:43)
> Recent versions of the GL CTS report X connection errors on standard
> out.  Support all variants by checking both stdout and stderr for the
> error string.
> ---
>  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 5b53efd..871ce25 100644
> --- a/framework/test/deqp.py
> +++ b/framework/test/deqp.py
> @@ -220,7 +220,9 @@ class DEQPBaseTest(Test):
>  """Rerun the command if X11 connection failure happens."""
>  for _ in range(5):
>  super(DEQPBaseTest, self)._run_command(*args, **kwargs)
> -if "FATAL ERROR: Failed to open display" not in self.result.err:
> -return
> +x_err_msg = "FATAL ERROR: Failed to open display"
> +if x_err_msg in self.result.err or x_err_msg in self.result.out:
> +continue
> +return
>  
>  raise TestRunError('Failed to connect to X server 5 times', 'fail')
> -- 
> 2.10.2
> 

Reviewed-by: Dylan Baker 


signature.asc
Description: signature
___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


[Piglit] [PATCH] deqp: Search stdout and stderr for X connection failure

2017-01-06 Thread Mark Janes
Recent versions of the GL CTS report X connection errors on standard
out.  Support all variants by checking both stdout and stderr for the
error string.
---
 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 5b53efd..871ce25 100644
--- a/framework/test/deqp.py
+++ b/framework/test/deqp.py
@@ -220,7 +220,9 @@ class DEQPBaseTest(Test):
 """Rerun the command if X11 connection failure happens."""
 for _ in range(5):
 super(DEQPBaseTest, self)._run_command(*args, **kwargs)
-if "FATAL ERROR: Failed to open display" not in self.result.err:
-return
+x_err_msg = "FATAL ERROR: Failed to open display"
+if x_err_msg in self.result.err or x_err_msg in self.result.out:
+continue
+return
 
 raise TestRunError('Failed to connect to X server 5 times', 'fail')
-- 
2.10.2

___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit