]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: don't create extra files directory unconditionally
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 13 Mar 2016 19:59:03 +0000 (08:59 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 07:44:01 +0000 (07:44 +0000)
commitb8b778345eb0997c2cd952a1f61fdd2050b6b894
tree95698a0f34ba7c5c9a45187a91cdd69146bcaf5a
parent300f858ba07c938427ccd05a3d7220027a03d461
recipetool: create: don't create extra files directory unconditionally

The extra directory next to the recipe should only be created if there
are files to put into it; currently only the npm plugin does this. I
didn't notice the issue earlier because the test was actually able to
succeed under these circumstances if the recipe file came first in the
directory listing, which was a fault in my original oe-selftest test;
apparently on some YP autobuilder machines the order came out reversed.

With this change we can put the oe-selftest test that highlighted the
issue back to the way it was, with an extra check to reinforce that only
a single file should be created.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/recipetool.py
scripts/lib/recipetool/create.py