<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/scripts/qemuimage-testlib, branch 1.3.1</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=1.3.1</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=1.3.1'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2013-03-27T17:28:01+00:00</updated>
<entry>
<title>qemuimage-testlib: Capture stderror in the logs as well as stdout</title>
<updated>2013-03-27T17:28:01+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-27T13:52:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=53f746cecc63248dfe3111637bf33b00a725784c'/>
<id>urn:sha1:53f746cecc63248dfe3111637bf33b00a725784c</id>
<content type='text'>
This allows error messages to be captured in the logs which is helpful.

(From OE-Core rev: efb89b3fd5a96da70153f24c849d1436d1ba06cb)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemuimagetest: collect and print runqemu output</title>
<updated>2013-03-27T17:28:01+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@linux.intel.com</email>
</author>
<published>2013-03-26T12:43:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=baba50e9313587916a0ce4dcceaaf0d8bc84e527'/>
<id>urn:sha1:baba50e9313587916a0ce4dcceaaf0d8bc84e527</id>
<content type='text'>
If runqemu (or qemu itself) fails we need to know why, so tee out to a
log file and print it when we can't find the qemu process or determine
its IP address.

(From OE-Core rev: 3faa2d5bc993876f1f8b3ad806a0192efaa43e05)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemuimagetest: fix erroneous ps errors when qemu couldn't be started</title>
<updated>2013-03-27T17:28:01+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@linux.intel.com</email>
</author>
<published>2013-03-26T12:43:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d76a3f534d2d65d9cc7d6dc02930518a3bd849b0'/>
<id>urn:sha1:d76a3f534d2d65d9cc7d6dc02930518a3bd849b0</id>
<content type='text'>
The helper script was printing an error to stdout when it couldn't find
any qemu child processes; output this error to stderr instead and
redirect stderr to /dev/null when running from qemuimage-testlib so that
QEMUPID is actually blank if there are no qemu instances found.

(From OE-Core rev: 21edf5ec12d8307c528f157c8e078dbefe25d1ef)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/qemu-testlib: Add more debugging information</title>
<updated>2013-03-27T17:28:01+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-21T14:29:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=317301d146287f20922773b5bf4f59737b60f8af'/>
<id>urn:sha1:317301d146287f20922773b5bf4f59737b60f8af</id>
<content type='text'>
This extra information should allow better forensics if the sanity tests
fail as they're currently doing occasionaly on the autobuilder for unknown
reasons.

The patch also tightens up certain checks to remove pointless noise and
error output from the logs.

(From OE-Core rev: aef04b2247137fffb8c1b1d776091bbee8637ff9)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemuimage-testlib: Add extra debugging and sanity check</title>
<updated>2013-03-27T17:28:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-20T10:58:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=a9390e0f9e4a147f9e0a3a56b715975e58766fc0'/>
<id>urn:sha1:a9390e0f9e4a147f9e0a3a56b715975e58766fc0</id>
<content type='text'>
Check for a zero IP address since its clearly incorrect if that value
is found. Also add debugging for cases where we can't find the qemu
process. A process listing is handy to help understand what the problem
might be.

(From OE-Core rev: a822eff2362ac0284b320b2d45cf9dbf9b9dd73c)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemuimage-testlib: Add delay to work around races in qemu startup</title>
<updated>2013-03-27T17:28:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-20T09:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=0e63018f9dd46ee90d7b8540a717b01f4a9752c0'/>
<id>urn:sha1:0e63018f9dd46ee90d7b8540a717b01f4a9752c0</id>
<content type='text'>
Qemu changes pid when starting up. On a loaded machine, this can result
in the incorrect pid being returned. Since qemu will take a few seconds to
boot anyway, we might as well delay a short while and allow things to settle
which should fix various race issues being seen on the autobuilder.

(From OE-Core rev: 27d00d62281a822efbbc189a3bab1d9b25fba3a7)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemuimage-testlib: Fix IP address handling</title>
<updated>2013-03-27T17:28:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-19T23:32:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=24a234c5cda22868828c4c8971c6eba0081156fb'/>
<id>urn:sha1:24a234c5cda22868828c4c8971c6eba0081156fb</id>
<content type='text'>
Remove some pointless code and also fix the return handling
for the function since it returns null, not 0 as the comments
would suggest.

(From OE-Core rev: 827492e3738bf3b6cf2bc1b9e1108bb28abcb146)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/qemutestlib: Add better process debugging and fix process group issue</title>
<updated>2013-03-27T17:28:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-19T20:54:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=caa75bfffb4cd3808aa6a5473f7cc6208e9e934c'/>
<id>urn:sha1:caa75bfffb4cd3808aa6a5473f7cc6208e9e934c</id>
<content type='text'>
In single testing with a shutdown scenario the processes are cleaned up correctly
but the manual cleanup fall back used for a minimal image do not work properly.
This patch fixes the kill commands to revert to non-process groups, fixing
the hung process issues that were occuring.

(From OE-Core rev: 1c7d4fc88a9e7a3cdb41044ce7eedadd38e99952)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>qemu-testlib: Add python helper and simplify shell</title>
<updated>2013-03-27T17:28:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2013-03-19T11:44:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ebf1f6dacfb3ef61583c6eeeb0f98191e18f5ad9'/>
<id>urn:sha1:ebf1f6dacfb3ef61583c6eeeb0f98191e18f5ad9</id>
<content type='text'>
The current code has a race since it greps for *any* qemu process
running, even if it isn't the one we started. This leads to some sanity
tests potentially failing on machines where multiple sets of sanity tests
are running.

To resovle this and some other ugly code issues, add a python script
to accurately walk the process tree and find the qemu process. We can
then replace all the shell functions attempting this which happen to
work in many cases but not all.

Also clean up some of the error handling so its more legible.

(From OE-Core rev: a62263761fc77c139d418236cc52b04bed629229)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/qemuimage-testlib: Use wide option to ps calls</title>
<updated>2013-02-14T23:08:39+00:00</updated>
<author>
<name>Michael Halstead</name>
<email>michael@yoctoproject.org</email>
</author>
<published>2013-02-13T16:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=046bbc1c9c3cee109bb4d9abafab5fb07480c7e7'/>
<id>urn:sha1:046bbc1c9c3cee109bb4d9abafab5fb07480c7e7</id>
<content type='text'>
Forcing ps to display unlimited column width allows the qemu IP address to
be discovered during sanity testing when the command line is extremely long.

This seems to fix the sanity testing problem on AB05 which was recently updated
to OpenSUSE 12.2. I'm not sure what about qemu or process listing is different
on that distribution but this simpile fix seems to work and my help on other
distro's as well.

(From OE-Core rev: 4d2164494fba2c4c3016fe196f986161a71f70cb)

Signed-off-by: Michael Halstead &lt;michael@yoctoproject.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
