On 11/01/2013 05:30 PM, Lucas Meneghel Rodrigues wrote:
> https://travis-ci.org/autotest/autotest/builds/12695319
> 
> Travis will clone autotest, install it with setup.py, then execute the
> unittests. A well written unittest won't need external resources to run,
> but some of ours are not quite like that:
> 
> ======================================================================
> ERROR: test_decompose_nominor_30
> (autotest.client.kernelexpand_unittest.kernelexpandTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/autotest/client/kernelexpand_unittest.py",
> line 31, in setUp
>     settings.override_value('CLIENT', 'kernel_mirror', km)
>   File
> "/home/travis/virtualenv/python2.7/local/lib/python2.7/site-packages/autotest/client/shared/settings.py",
> line 133, in override_value
>     self.config.set(section, key, new_value)
>   File "/usr/lib/python2.7/ConfigParser.py", line 396, in set
>     raise NoSectionError(section)
> NoSectionError: No section: 'CLIENT'
> 
> So we need some unittest fixes, rinse and repeat until travis reports a
> clean unittest run.

Ahh, yes, very important, easy to say, and hard to do :)  I agree, we
have many unittests that depend on external conditions/state.  They can
easily hide problems, so I agree, we need tofix this.  This probably
also explains why we have problems sometimes when unittests are run in
parallel :S

-- 
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to