Thread (51 messages) 51 messages, 2 authors, 2021-05-29

Re: [PATCH v5 4/5] oeqa/selftest/cases/rust.py: Rust oe-selftest script.

From: Alexander Kanavin <hidden>
Date: 2021-05-27 08:32:15

On Thu, 27 May 2021 at 10:11, Vinay Kumar [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help