From: Martin Bligh Subject: Re: [Autotest] [KVM-AUTOTEST PATCH 1/4] Make all programs on kvm test use /usr/bin/python Date: Tue, 9 Jun 2009 10:00:14 -0700 Message-ID: <33307c790906091000v26c7a9f2qd06dcaf9de4b047a@mail.gmail.com> References: <1244565209-9132-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: Lucas Meneghel Rodrigues Return-path: Received: from smtp-out.google.com ([216.239.45.13]:47610 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753635AbZFIRAQ convert rfc822-to-8bit (ORCPT ); Tue, 9 Jun 2009 13:00:16 -0400 Received: from spaceape12.eur.corp.google.com (spaceape12.eur.corp.google.com [172.28.16.146]) by smtp-out.google.com with ESMTP id n59H0HXf011339 for ; Tue, 9 Jun 2009 10:00:18 -0700 Received: from pzk12 (pzk12.prod.google.com [10.243.19.140]) by spaceape12.eur.corp.google.com with ESMTP id n59H0E5t030466 for ; Tue, 9 Jun 2009 10:00:15 -0700 Received: by pzk12 with SMTP id 12so174639pzk.30 for ; Tue, 09 Jun 2009 10:00:14 -0700 (PDT) In-Reply-To: <1244565209-9132-1-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: I'd suggest you use the same mechanism as the other entry points, and override the python version where necessary - some distros have ancient or bleeding edge default Python versions. see common.py -> setup_modules.py -> check_version.check_python_version On Tue, Jun 9, 2009 at 9:33 AM, Lucas Meneghel Rodrigues wrote: > All kvm modules that can be used as stand alone programs were > updated to use #!/usr/bin/python instead of #!/usr/bin/env python, > complying with the rest of the autotest code base. > > Signed-off-by: Lucas Meneghel Rodrigues > --- > =A0client/tests/kvm/fix_cdkeys.py =A0 | =A0 =A02 +- > =A0client/tests/kvm/kvm_config.py =A0 | =A0 =A01 + > =A0client/tests/kvm/scan_results.py | =A0 =A02 +- > =A0client/tests/kvm/stepeditor.py =A0 | =A0 =A02 +- > =A0client/tests/kvm/stepmaker.py =A0 =A0| =A0 =A02 +- > =A05 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/client/tests/kvm/fix_cdkeys.py b/client/tests/kvm/fix_cd= keys.py > index 4f7a824..7f52c44 100755 > --- a/client/tests/kvm/fix_cdkeys.py > +++ b/client/tests/kvm/fix_cdkeys.py > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/python > =A0import shutil, os, sys > > =A0""" > diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_co= nfig.py > index 40f16f1..a3467a0 100755 > --- a/client/tests/kvm/kvm_config.py > +++ b/client/tests/kvm/kvm_config.py > @@ -1,3 +1,4 @@ > +#!/usr/bin/python > =A0import re, os, sys, StringIO > =A0from autotest_lib.client.common_lib import error > > diff --git a/client/tests/kvm/scan_results.py b/client/tests/kvm/scan= _results.py > index 156b7d4..a92c867 100755 > --- a/client/tests/kvm/scan_results.py > +++ b/client/tests/kvm/scan_results.py > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/python > =A0""" > =A0Program that parses the autotest results and return a nicely print= ed final test > =A0result. > diff --git a/client/tests/kvm/stepeditor.py b/client/tests/kvm/steped= itor.py > index 9669200..6fb371b 100755 > --- a/client/tests/kvm/stepeditor.py > +++ b/client/tests/kvm/stepeditor.py > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/python > =A0import pygtk, gtk, os, glob, shutil, sys, logging > =A0import ppm_utils > =A0pygtk.require('2.0') > diff --git a/client/tests/kvm/stepmaker.py b/client/tests/kvm/stepmak= er.py > index 2b7fd54..a9ddf25 100644 > --- a/client/tests/kvm/stepmaker.py > +++ b/client/tests/kvm/stepmaker.py > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/python > =A0import pygtk, gtk, gobject, time, os, commands > =A0from autotest_lib.client.common_lib import error > =A0import kvm_utils, logging, ppm_utils, stepeditor > -- > 1.6.2.2 > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >