[Piglit] [PATCH 1/2] tests: use /usr/bin/env python

Vinson Lee vlee at vmware.com
Mon Nov 8 18:41:21 PST 2010


> -----Original Message-----
> From: piglit-bounces+vlee=vmware.com at lists.freedesktop.org [mailto:piglit-
> bounces+vlee=vmware.com at lists.freedesktop.org] On Behalf Of Xavier Chantry
> Sent: Sunday, October 24, 2010 5:11 AM
> To: piglit
> Subject: [Piglit] [PATCH 1/2] tests: use /usr/bin/env python
> 
> This is just to have a consistent python header in all piglit python
> files.
> 
> Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
> ---
>  tests/all.tests                                |    2 +-
>  tests/external-glslparser.tests                |    2 +-
>  tests/glslparsertest/glsl2/gen_builtin_test.py |    2 +-
>  tests/i965-gen6.tests                          |    2 +-
>  tests/quick-driver.tests                       |    2 +-
>  tests/quick.tests                              |    2 +-
>  tests/r300.tests                               |    2 +-
>  tests/r500.tests                               |    2 +-
>  tests/radeon.tests                             |    2 +-
>  tests/sanity.tests                             |    2 +-
>  10 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/tests/all.tests b/tests/all.tests
> index bd487a7..842f718 100644
> --- a/tests/all.tests
> +++ b/tests/all.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  # -*- coding: utf-8 -*-
>  # All tests that come with piglit, using default settings
> 
> diff --git a/tests/external-glslparser.tests b/tests/external-
> glslparser.tests
> index 1faf914..f8ea1ac 100644
> --- a/tests/external-glslparser.tests
> +++ b/tests/external-glslparser.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  # -*- coding: utf-8 -*-
>  # All tests that come with piglit, using default settings
> 
> diff --git a/tests/glslparsertest/glsl2/gen_builtin_test.py
> b/tests/glslparsertest/glsl2/gen_builtin_test.py
> index bccc9d6..e1e05e3 100755
> --- a/tests/glslparsertest/glsl2/gen_builtin_test.py
> +++ b/tests/glslparsertest/glsl2/gen_builtin_test.py
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python
> +#!/usr/bin/env python
> 
>  one_parameter_110 = [
>      "radians",
> diff --git a/tests/i965-gen6.tests b/tests/i965-gen6.tests
> index e86db45..cd1fb34 100644
> --- a/tests/i965-gen6.tests
> +++ b/tests/i965-gen6.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  # -*- coding: utf-8 -*-
>  #
>  # Testing the Gen6 (Sandybridge) driver
> diff --git a/tests/quick-driver.tests b/tests/quick-driver.tests
> index dc64ede..70046e5 100644
> --- a/tests/quick-driver.tests
> +++ b/tests/quick-driver.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  # -*- coding: utf-8 -*-
> 
>  import re
> diff --git a/tests/quick.tests b/tests/quick.tests
> index 8018505..b2c3212 100644
> --- a/tests/quick.tests
> +++ b/tests/quick.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  # -*- coding: utf-8 -*-
>  #
>  # Testing drivers for Radeon hardware
> diff --git a/tests/r300.tests b/tests/r300.tests
> index c4f2416..0560f47 100644
> --- a/tests/r300.tests
> +++ b/tests/r300.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  #
>  # Testing the r300 DRI driver
>  #
> diff --git a/tests/r500.tests b/tests/r500.tests
> index 6fe2733..96fb2c2 100644
> --- a/tests/r500.tests
> +++ b/tests/r500.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  #
>  # Testing the r500 DRI driver
>  #
> diff --git a/tests/radeon.tests b/tests/radeon.tests
> index a335b16..d8a7592 100644
> --- a/tests/radeon.tests
> +++ b/tests/radeon.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  #
>  # Testing drivers for Radeon hardware
>  #
> diff --git a/tests/sanity.tests b/tests/sanity.tests
> index 6943221..13c65b7 100644
> --- a/tests/sanity.tests
> +++ b/tests/sanity.tests
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python
>  #
>  # Minimal tests to check whether the installation is working
>  #
> --
> 1.7.3.2
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


I committed the above patch to the piglit repository.


More information about the Piglit mailing list