This looks good; I'll apply it.

On Wed, Apr 28, 2010 at 9:53 AM, Eric Li(李咏竹) <[email protected]> wrote:

> ping.
>
>
> On Fri, Apr 23, 2010 at 9:10 AM, Eric Li(李咏竹) <[email protected]> wrote:
>
>> In the case if there is some wrong in a control file, control_data module
>> will throw out a ValueError which is not captured, and it will stop the
>> entire test import process.
>>
>> Add another catch block to capture all, log it, and keep moving to import
>> next test.
>>
>> Index: utils/test_importer.py
>> ===================================================================
>> --- utils/test_importer.py (revision 4443)
>> +++ utils/test_importer.py (working copy)
>> @@ -348,6 +348,8 @@
>>                      except control_data.ControlVariableException, e:
>>                          logging.info("Skipping %s\n%s", file, e)
>>                          pass
>> +                    except Exception, e:
>> +                        logging.error("Bad %s\n%s", file, e)
>>                  else:
>>                      found_test = control_data.parse_control(file)
>>                      tests[file] = found_test
>>
>> --
>> Eric Li
>> 李咏竹
>> Google Kirkland
>>
>>
>>
>
>
> --
> Eric Li
> 李咏竹
> Google Kirkland
>
>
>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to