[OE-core] [PATCH 04/20] OEQA: update ltp runtimes to use new structure

akuster808 akuster808 at gmail.com
Thu Nov 14 03:42:16 UTC 2019



On 11/13/19 5:53 PM, Mittal, Anuj wrote:
> Hi Armin
>
> On Mon, 2019-11-11 at 20:33 -0800, Armin Kuster wrote:
>>      # LTP runtime tests
>>      @OETestDepends(['ssh.SSHTest.test_ssh'])
>>      @OEHasPackage(["ltp"])
>> @@ -111,8 +34,10 @@ class LtpTest(LtpTestBase):
>>      @OETestDepends(['ltp.LtpTest.test_ltp_help'])
>>      def test_ltp_groups(self):
>>          for ltp_group in self.ltp_groups: 
>> -            self.runltp(ltp_group)
>> +            self.cmd = '/opt/ltp/runltp -f %s -p -q -r /opt/ltp -l
>> /opt/ltp/results/%s -I 1 -d /opt/ltp' % (ltp_group, ltp_group)
>> +            self.runltp(ltp_group, 'ltpresult')
>>  
>>      @OETestDepends(['ltp.LtpTest.test_ltp_groups'])
>>      def test_ltp_runltp_cve(self):
>> -        self.runltp("cve")
>> +        self.cmd = '/opt/ltp/runltp -f cve -p -q -r /opt/ltp -l
>> /opt/ltp/results/cve -I 1 -d /opt/ltp'
>> +        self.runltp('cve')
>
> Looks like this is causing:

> NOTE: Running task 731 of 731 (/home/pokybuild/yocto-worker/qemux86-64-
> ltp/build/meta/recipes-sato/images/core-image-sato.bb:do_testimage)
> NOTE: recipe core-image-sato-1.0-r0: task do_testimage: Started
> Traceback (most recent call last):
>   File "/home/pokybuild/yocto-worker/qemux86-64-
> ltp/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, in
> wrapped_f
>     return func(*args, **kwargs)
>   File "/home/pokybuild/yocto-worker/qemux86-64-
> ltp/build/meta/lib/oeqa/runtime/cases/ltp.py", line 38, in
> test_ltp_groups
>     self.runltp(ltp_group, 'ltpresult')
> TypeError: runltp() takes 2 positional arguments but 3 were given
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/95/builds/325
Hmm, will look into it.

thanks.

will send v2.

- armin
>
> Thanks,
>
> Anuj



More information about the Openembedded-core mailing list