[OE-core] [PATCH v3 09/11] wic: selftest: add tests for --fixed-size partition flags

Maciej Borzęcki maciej.borzecki at rndity.com
Tue Nov 22 21:31:48 UTC 2016


On Tue, Nov 22, 2016 at 4:02 PM, Maciej Borzęcki
<maciej.borzecki at rndity.com> wrote:
> On Tue, Nov 22, 2016 at 3:47 PM, Burton, Ross <ross.burton at intel.com> wrote:
>>
>> On 15 November 2016 at 09:52, Maciej Borzecki <maciej.borzecki at rndity.com>
>> wrote:
>>>
>>> wic has a new flag for setting a fixed parition size --fixed-size. Add
>>> tests that verify if partition is indeed sized properly and that errors
>>> are signaled when there is not enough space to fit partition data.
>>
>>
>> Just failed on the AB:
>>
>> FAIL: test_fixed_size (oeqa.selftest.wic.Wic)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py",
>> line 418, in test_fixed_size
>>     self.assertEqual(0, res.status)
>> AssertionError: 0 != 127
>>
>> Might be useful to print res.output in the failure. :)
>>
>
> A bit weird. The test failed on this:
>
>         # verify partition size with wic
>         res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg,
> ignore_status=True)
>         self.assertEqual(0, res.status)
>
> So the image is there. It was listed by glob(), which is a directly
> before runing parted. Also wic has built it (because the test would have
> failed even earlier). However, when parted gets there, it either fails
> to understand `unit mib p` (unlikely), or the disk image is just not
> there anymore.
>
> Is there a chance these tests are run in parallel?
>

Nevermind. I have incorrectly assumed that runCmd() sets up PATH in a
way that enables running *-native tools. However, the tests ended up
host parted binary rather than the one built by parted-native. Worked
fine on my Fedora based build systems where parted is installed by
default.

I will post a v4 of the series (just the patches that are not in master
yet).

Cheers,
-- 
Maciej Borzecki
RnDity



More information about the Openembedded-core mailing list