[Piglit] [PATCH v2] igt.py: Fix PEP 8 issues.
Dylan Baker
baker.dylan.c at gmail.com
Mon Mar 9 17:30:45 PDT 2015
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
On Mon, Mar 09, 2015 at 02:15:16PM -0700, Vinson Lee wrote:
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> tests/igt.py | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/tests/igt.py b/tests/igt.py
> index dd7a38a..2047781 100644
> --- a/tests/igt.py
> +++ b/tests/igt.py
> @@ -79,8 +79,8 @@ else:
> assert os.path.exists(IGT_TEST_ROOT)
>
> # check for the test lists
> -if not (os.path.exists(os.path.join(IGT_TEST_ROOT, 'single-tests.txt'))
> - and os.path.exists(os.path.join(IGT_TEST_ROOT, 'multi-tests.txt'))):
> +if not (os.path.exists(os.path.join(IGT_TEST_ROOT, 'single-tests.txt')) and
> + os.path.exists(os.path.join(IGT_TEST_ROOT, 'multi-tests.txt'))):
> print("intel-gpu-tools test lists not found.")
> sys.exit(0)
>
> @@ -115,7 +115,6 @@ class IGTTest(Test):
> self.result['result'] = 'fail'
>
>
> -
> def list_tests(listname):
> """Parse igt test list and return them as a list."""
> with open(os.path.join(IGT_TEST_ROOT, listname + '.txt'), 'r') as f:
> --
> 2.1.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150309/9f6cbe02/attachment.sig>
More information about the Piglit
mailing list