From: Yi Zhao <yi.zhao@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: paul.eggleton@linux.intel.com, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] lib/oeqa/selftest/bblayers: improve test for add-layer and remove-layer
Date: Fri, 10 Apr 2015 17:26:16 +0800 [thread overview]
Message-ID: <55279738.8040102@windriver.com> (raw)
In-Reply-To: <DEF0B711-0C4D-4AFB-8057-E981A06E7DAC@gmail.com>
在 2015年04月10日 08:22, Khem Raj 写道:
>> On Apr 9, 2015, at 12:10 AM, Yi Zhao <yi.zhao@windriver.com> wrote:
>>
>> Use absolute path instead of relative path for meta-skeleton.
>> Otherwise the case would fail if the builddir outside the poky source
>> tree.
> may be you should say ‘OE-Core’ sources instead here.
Thanks, Khem. Strictly speaking it should be OE-Core.
Yi
>
>> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
>> ---
>> meta/lib/oeqa/selftest/bblayers.py | 9 +++++----
>> 1 file changed, 5 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta/lib/oeqa/selftest/bblayers.py b/meta/lib/oeqa/selftest/bblayers.py
>> index 5b046d0..3a18029 100644
>> --- a/meta/lib/oeqa/selftest/bblayers.py
>> +++ b/meta/lib/oeqa/selftest/bblayers.py
>> @@ -6,7 +6,7 @@ import shutil
>>
>> import oeqa.utils.ftools as ftools
>> from oeqa.selftest.base import oeSelfTest
>> -from oeqa.utils.commands import runCmd
>> +from oeqa.utils.commands import runCmd, get_bb_var
>> from oeqa.utils.decorators import testcase
>>
>> class BitbakeLayers(oeSelfTest):
>> @@ -44,15 +44,16 @@ class BitbakeLayers(oeSelfTest):
>> self.assertTrue(find_in_contents)
>>
>> def test_bitbakelayers_add_remove(self):
>> + test_layer = os.path.join(get_bb_var('COREBASE'), 'meta-skeleton')
>> result = runCmd('bitbake-layers show-layers')
>> self.assertNotIn('meta-skeleton', result.output, 'This test cannot run with meta-skeleton in bblayers.conf')
>> - result = runCmd('bitbake-layers add-layer ../meta-skeleton')
>> + result = runCmd('bitbake-layers add-layer %s' % test_layer)
>> result = runCmd('bitbake-layers show-layers')
>> self.assertIn('meta-skeleton', result.output)
>> - result = runCmd('bitbake-layers remove-layer ../meta-skeleton')
>> + result = runCmd('bitbake-layers remove-layer %s' % test_layer)
>> result = runCmd('bitbake-layers show-layers')
>> self.assertNotIn('meta-skeleton', result.output)
>> - result = runCmd('bitbake-layers add-layer ../meta-skeleton')
>> + result = runCmd('bitbake-layers add-layer %s' % test_layer)
>> result = runCmd('bitbake-layers show-layers')
>> self.assertIn('meta-skeleton', result.output)
>> result = runCmd('bitbake-layers remove-layer */meta-skeleton')
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
prev parent reply other threads:[~2015-04-10 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 7:10 [PATCH] lib/oeqa/selftest/bblayers: improve test for add-layer and remove-layer Yi Zhao
2015-04-09 10:04 ` Paul Eggleton
2015-04-10 0:22 ` Khem Raj
2015-04-10 9:26 ` Yi Zhao [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=55279738.8040102@windriver.com \
--to=yi.zhao@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
--cc=raj.khem@gmail.com \
/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