On Fri, 22 May 2020 at 10:26, Alexander Kanavin <[email protected]> wrote:
>
> On Fri, 22 May 2020 at 05:54, zangrc <[email protected]> wrote:
>>
>> +               char pytest_append[] = "| sed -e 's/\\[...%\\]//g'| sed -e 
>> 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk 
>> '{if ($NF==\"PASS\" || $NF==\"FAIL\" || $NF==\"SKIP\" || $NF==\"XFAIL\" || 
>> $NF==\"XPASS\"){printf \"%s: %s\\n\", $NF, $0}else{print}}'| awk '{if 
>> ($NF==\"PASS\" || $NF==\"FAIL\" || $NF==\"SKIP\" || $NF==\"XFAIL\" || 
>> $NF==\"XPASS\") {$NF=\"\";print $0}else{print}}'";
>
>
> Is it possible to process the output directly, rather than tweak it via 
> sed/awk shell pipelines that are very difficult to read?

Another option could be to generate the output in the correct format
directly from Python using something like this module which I wrote a
few years back:
https://gitlab.com/b5/BetaTest/betatest/-/blob/master/betatest/amtest.py

Thanks,

-- 
Paul Barker
Konsulko Group
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49453): https://lists.yoctoproject.org/g/yocto/message/49453
Mute This Topic: https://lists.yoctoproject.org/mt/74392263/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to