From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Joe Slater <jslater@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] testsdk: add ability to search for multilib packages
Date: Sat, 13 Jan 2018 14:14:56 +0000 [thread overview]
Message-ID: <1515852896.29722.157.camel@linuxfoundation.org> (raw)
In-Reply-To: <20171219190728.133823-1-jslater@windriver.com>
On Tue, 2017-12-19 at 11:07 -0800, Joe Slater wrote:
> We search for packages related to the sdk environment
> being used for a test.
[...]
> @@ -33,6 +34,16 @@ class OESDKTestContext(OETestContextThreaded):
> def hasTargetPackage(self, pkg):
> return self._hasPackage(self.target_pkg_manifest, pkg)
>
> + def hasPrefixedTargetPackage(self, pkg):
> + # extract multilib from environment script name
> + try:
> + p = re.match(".*(lib.?[36][24]-)linux-?",
> self.sdk_env).group(1) + pkg
> + except:
I'm not sure this is correct, many of the prefixes are just "lib32-"
and there is no "linux" in there?
We could really use unit tests on these functions as we're heading into
unmaintainable spaghetti territory :(.
It may also be an option to iterate the configured multilibs and search
for each one, that way we avoid the regexp overhead?
Cheers,
Richard
prev parent reply other threads:[~2018-01-13 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-19 19:07 [PATCH 1/1] testsdk: add ability to search for multilib packages Joe Slater
2018-01-13 14:14 ` Richard Purdie [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=1515852896.29722.157.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=jslater@windriver.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox