[OE-core] [PATCH 14/20] OEQA: move manual bash test to runtime

akuster808 akuster808 at gmail.com
Wed Nov 13 01:49:26 UTC 2019



On 11/12/19 5:33 PM, Mittal, Anuj wrote:
> On Mon, 2019-11-11 at 20:33 -0800, Armin Kuster wrote:
>> +
>> +class Bsp(OESelftestTestCase):
>> +    def test_bash_installed(self):
>> +        """
>> +        Summary:        The purpose of this test case is to verify
>> that bash 
>> +                        in exists in the image. Test came from
>> manual.
>> +        Expected:       Bash is found.
>> +        """
>> +
>> +        features = 'IMAGE_INSTALL_append = " bash"\n'
>> +        self.write_config(features)
>> +        bitbake('core-image-minimal')
>> +
>> +        with runqemu('core-image-minimal') as qemu:
>> +            result = runCmd("which bash" , shell=True)
>> +            self.assertEqual(0, result.status, "Couldn't find bash")
>> -- 
> We have IncompatibleLicensePerImageTests that tests for presence of
> bash when different LICENSE values are set.
Yeah, I found that later as I was poking around but want to send the
patch just to have the conversation.
>
> Perhaps we don't need this and can consider this case covered by that
> test?

I am fine with that.

thanks,
Armin
>
> Thanks,
>
> Anuj



More information about the Openembedded-core mailing list