Alternatively, simply capture the output in result.output without
summary.txt redirection
(e.g. drop the '> summary.txt' bit); we can fine-tune the failure
processing later on.

Alex

On Thu, 27 May 2021 at 10:32, Alexander Kanavin via lists.openembedded.org
<[email protected]> wrote:

> On Thu, 27 May 2021 at 10:11, Vinay Kumar <[email protected]> wrote:
>
>> +                       cmd = cmd + " cd %s;  python3
>> src/bootstrap/bootstrap.py test %s --target %s > summary.txt 2>&1;" %
>> (builddir, testargs, targetsys)
>> +                       # To kill remote-test-server executing through
>> background ssh
>> +                       killcommand = "kill -9 \$(ps | grep
>> remote-test-server |  grep -v \"grep\" | awk '{print \$1}')"
>> +                       cmd = cmd + "ssh %s root@%s \"%s\";" % (sshargs,
>> qemu.ip, killcommand)
>> +                       result = runCmd(cmd)
>> +                       self.assertEqual(0, result.status, 'oe-selftest
>> returned a non 0 status:%s' % result.output)
>
>
> What does result.output contains if the test fails? Since both stdout and
> stderr are redirected to a file, there might be nothing at all there?
>
> I'd suggest you actually print all of summary.txt in case of failure (yes
> it's over a megabyte, that is fine), and also point out where the file can
> be found for further inspection.
>
> Alex
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152310): 
https://lists.openembedded.org/g/openembedded-core/message/152310
Mute This Topic: https://lists.openembedded.org/mt/83120117/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to