----- Original Message -----
> From: "Nishanth Aravamudan" <[email protected]>
> To: [email protected]
> Cc: [email protected]
> Sent: Friday, June 8, 2012 5:55:07 PM
> Subject: [Autotest] [PATCH] client/boottool: print exception information when
> grubby fails to install
>
> diff --git a/client/shared/boottool.py b/client/shared/boottool.py
> index 6a049e7..c852ee5 100644
> --- a/client/shared/boottool.py
> +++ b/client/shared/boottool.py
> @@ -49,8 +49,8 @@ class boottool(Grubby):
> install_grubby_if_necessary()
> Grubby.__init__(self, self.path)
> self.instantiated = True
> - except Exception:
> - raise error.JobError("Unable to instantiate
> boottool")
> + except Exception as e:
> + raise error.JobError("Unable to instantiate
> boottool: %s" % e)
>
>
> def __getattr__(self, name):
> --
> Nishanth Aravamudan <[email protected]>
> IBM Linux Technology Center
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>
Hi,
this patch is working only for Python 2.5 and later. As autotest should run on
python 2.4 we need to fix with following patch:
diff --git a/client/shared/boottool.py b/client/shared/boottool.py
index c852ee5..d4e5b3a 100644
--- a/client/shared/boottool.py
+++ b/client/shared/boottool.py
@@ -49,7 +49,7 @@ class boottool(Grubby):
install_grubby_if_necessary()
Grubby.__init__(self, self.path)
self.instantiated = True
- except Exception as e:
+ except Exception, e:
raise error.JobError("Unable to instantiate boottool: %s" % e)
--
Miroslav Rezanina
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest