On Mon, 2011-01-10 at 15:52 +0800, Amos Kong wrote:
> sub_dir = '' if key == 'root' else key
> 
> This syntax is not supported by python 2.4

Oops... Thanks for the fix, Amos!

> Signed-off-by: Amos Kong <[email protected]>
> ---
>  0 files changed, 0 insertions(+), 0 deletions(-)
> 
> diff --git a/client/common_lib/base_job.py b/client/common_lib/base_job.py
> index f0311b6..c5f55f8 100644
> --- a/client/common_lib/base_job.py
> +++ b/client/common_lib/base_job.py
> @@ -800,7 +800,10 @@ class TAPReport(object):
>          Write TAP reports to file.
>          """
>          for key in self._reports_container.keys():
> -            sub_dir = '' if key == 'root' else key
> +            if key == 'root':
> +                sub_dir = ''
> +            else:
> +                sub_dir = key
>              tap_fh = open(os.sep.join(
>                  [self.resultdir, sub_dir, self.global_filename]
>              ) + ".tap", 'w')
> 


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to