On 13 January 2015 at 22:50, Brian Murray <email address hidden> wrote:
> There was a failure with the test that I've commented on in-line.
>
>> +
>> + sources_file = apt_pkg.config.find_file("Dir::Etc::sourcelist")
>
> The test was failing for me and it seems to because the sources_file isn't saved when updateSourcesList is called. This is why the other tests use self._verifySources() whcih I've switched to using for your test.
>
Hm, this could be due to environment changes. I'm developing this on Trusty.
_verifySources() is not sufficient for this test. _verifySources only
checks that "these lines are in the file", I however need to test for
"extras.ubuntu.com lines _are removed from the file_" Thus
_verifySources was passing the test for me, with or without, the
patch. I don't believe wee have done outright removal ever before
(only commenting things out).
I'll check the branch / and test on utopic/vivid in chroot to see what
is going on.
On 13 January 2015 at 22:50, Brian Murray <email address hidden> wrote: config. find_file( "Dir::Etc: :sourcelist" ) rces() whcih I've switched to using for your test.
> There was a failure with the test that I've commented on in-line.
>
>> +
>> + sources_file = apt_pkg.
>
> The test was failing for me and it seems to because the sources_file isn't saved when updateSourcesList is called. This is why the other tests use self._verifySou
>
Hm, this could be due to environment changes. I'm developing this on Trusty.
_verifySources() is not sufficient for this test. _verifySources only
checks that "these lines are in the file", I however need to test for
"extras.ubuntu.com lines _are removed from the file_" Thus
_verifySources was passing the test for me, with or without, the
patch. I don't believe wee have done outright removal ever before
(only commenting things out).
I'll check the branch / and test on utopic/vivid in chroot to see what
is going on.
>> + self.assertEqua l(open( sources_ file).read( ),"""deb http:// archive. ubuntu. com/ubuntu gutsy main restricted archive. ubuntu. com/ubuntu gutsy-updates main restricted security. ubuntu. com/ubuntu/ gutsy-security main restricted transition( self):
>> +deb http://
>> +deb http://
>> +
>> +""")
>> +
>> def test_powerpc_
>> """
>> test transition of powerpc to ports.ubuntu.com
>>
--
Regards,
Dimitri.