From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: Humberto Ibarra <humberto.ibarra.lopez@intel.com>,
yocto@yoctoproject.org
Cc: joshua.g.lock@intel.com
Subject: Re: [PATCH v2][yocto-autobuilder] RunOeSelftest.py: changed to new oe-selftest syntax
Date: Thu, 1 Sep 2016 14:24:49 -0500 [thread overview]
Message-ID: <57C88081.6030602@linux.intel.com> (raw)
In-Reply-To: <1472756169-3929-1-git-send-email-humberto.ibarra.lopez@intel.com>
[-- Attachment #1: Type: text/plain, Size: 2513 bytes --]
Hi Humberto,
I acked the patch only a few comments, you forget to sign your patch,
please do with git commit -s.
Only for be clear this patch will support the next oe-selftest cmdline
also the old one so it could be integrated without the integration of
the oe-selttest new cmdline patch.
Cheers,
alimon
On 09/01/2016 01:56 PM, Humberto Ibarra wrote:
> oe-selftest is changing syntax with YOCTO #8938. This patch checks the correct syntax version and uses the right command to avoid breaking oe-seltest autobuilder. Should be integrated together with the syntax changing patch.
Acked-by: Aníbal Limón <anibal.limon@linux.intel.com>
>
> [YOCTO #8938]
> ---
> .../autobuilder/buildsteps/RunOeSelftest.py | 16 ++++++++++++++--
> 1 file changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/RunOeSelftest.py b/lib/python2.7/site-packages/autobuilder/buildsteps/RunOeSelftest.py
> index 809bcc3..ce0c0f6 100644
> --- a/lib/python2.7/site-packages/autobuilder/buildsteps/RunOeSelftest.py
> +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/RunOeSelftest.py
> @@ -34,9 +34,21 @@ class RunOeSelftest(ShellCommand):
> self.command += "netstat -an | grep -q 5901 ;"
> self.command += "if [ $? -ne 0 ]; then echo 'Starting a VNC server on :1'; vncserver :1; else echo 'Will use a VNC server already running on :1'; fi;"
> if self.tests == None:
> - self.command += "if [ -d ../meta-selftest ]; then export DISPLAY=:1; oe-selftest --run-all-tests; else echo 'Skipping step - no meta-selftest layer here'; fi"
> + oe_selftest_cmd = ('run', '--run-all-tests')
> else:
> - self.command += "if [ -d ../meta-selftest ]; then export DISPLAY=:1; oe-selftest " + self.tests + "; else echo 'Skipping step - no meta-selftest layer here'; fi"
> + oe_selftest_cmd = ("run --tests %s" % self.tests, "--run-tests %s" % self.tests)
> + self.command += """ \
> +if [ -d ../meta-selftest ]; then \
> + export DISPLAY=:1; \
> + VERSION=$(oe-selftest --version 2> /dev/null | cut -d' ' -f2); \
> + if [ \"$VERSION\" == '2.0' ]; then \
> + oe-selftest %s; \
> + else \
> + oe-selftest %s; \
> + fi; \
> +else \
> + echo 'Skipping step - no meta-selftest layer here';
> +fi""" % oe_selftest_cmd
> ShellCommand.start(self)
>
> def _createOESelftestErrorReport(self, log):
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2016-09-01 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-01 18:56 [PATCH v2][yocto-autobuilder] RunOeSelftest.py: changed to new oe-selftest syntax Humberto Ibarra
2016-09-01 19:24 ` Aníbal Limón [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57C88081.6030602@linux.intel.com \
--to=anibal.limon@linux.intel.com \
--cc=humberto.ibarra.lopez@intel.com \
--cc=joshua.g.lock@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.