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 (#152309):
https://lists.openembedded.org/g/openembedded-core/message/152309
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]]
-=-=-=-=-=-=-=-=-=-=-=-