[Piglit] [PATCH] scripts: Invoke python2, not python
Dylan Baker
baker.dylan.c at gmail.com
Fri Jul 12 14:15:28 PDT 2013
I'm pretty sure this breaks Debian based systems were python == python2
On Fri, Jul 12, 2013 at 2:10 PM, Chad Versace
<chad.versace at linux.intel.com>wrote:
> Fix the shebang (#!) line in all toplevel python scripts with
> s/python/python2
>
> Fixes Piglit on systems where Python3 is the default.
>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
> ---
> generate-glean-tests.py | 2 +-
> piglit-merge-results.py | 2 +-
> piglit-print-commands.py | 2 +-
> piglit-run.py | 2 +-
> piglit-summary-html.py | 2 +-
> piglit-summary-junit.py | 2 +-
> piglit-summary.py | 2 +-
> 7 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/generate-glean-tests.py b/generate-glean-tests.py
> index 452cb19..974a530 100755
> --- a/generate-glean-tests.py
> +++ b/generate-glean-tests.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> # -*- coding: utf-8 -*-
> #
> # Copyright © 2010 Intel Corporation
> diff --git a/piglit-merge-results.py b/piglit-merge-results.py
> index 7fc84db..78199f3 100755
> --- a/piglit-merge-results.py
> +++ b/piglit-merge-results.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Permission is hereby granted, free of charge, to any person
> # obtaining a copy of this software and associated documentation
> diff --git a/piglit-print-commands.py b/piglit-print-commands.py
> index 74cc70c..8742236 100755
> --- a/piglit-print-commands.py
> +++ b/piglit-print-commands.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Permission is hereby granted, free of charge, to any person
> # obtaining a copy of this software and associated documentation
> diff --git a/piglit-run.py b/piglit-run.py
> index 983e67e..9e12c8c 100755
> --- a/piglit-run.py
> +++ b/piglit-run.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Permission is hereby granted, free of charge, to any person
> # obtaining a copy of this software and associated documentation
> diff --git a/piglit-summary-html.py b/piglit-summary-html.py
> index 65e6653..bedd7e7 100755
> --- a/piglit-summary-html.py
> +++ b/piglit-summary-html.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Permission is hereby granted, free of charge, to any person
> # obtaining a copy of this software and associated documentation
> diff --git a/piglit-summary-junit.py b/piglit-summary-junit.py
> index 8c492ed..fd19385 100755
> --- a/piglit-summary-junit.py
> +++ b/piglit-summary-junit.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Copyright 2010-2011 VMware, Inc.
> # All Rights Reserved.
> diff --git a/piglit-summary.py b/piglit-summary.py
> index 5169cc4..bc88e55 100755
> --- a/piglit-summary.py
> +++ b/piglit-summary.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
> #
> # Permission is hereby granted, free of charge, to any person
> # obtaining a copy of this software and associated documentation
> --
> 1.8.3.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130712/982dece2/attachment.html>
More information about the Piglit
mailing list