summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-13 18:12:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-13 18:15:52 +0000
commitefa08813d749c61303ebbadcf1a9f99affbdaed9 (patch)
treeabda8839db7bd131eec64a6c4bd01a3684dd9427 /meta/lib/oeqa/selftest
parentc9d269ccd0d8e61335904a60ef5ce960993cba94 (diff)
downloadpoky-efa08813d749c61303ebbadcf1a9f99affbdaed9.tar.gz
oeqa/selftest/recipetool: Fix test_recipetool_create_simple
Correctly handle the any other files/directories that may exist during the test. ====================================================================== FAIL: test_recipetool_create_simple (oeqa.selftest.recipetool.RecipetoolTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f return func(*args, **kwargs) File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/recipetool.py", line 414, in test_recipetool_create_simple self.fail('recipetool did not create recipe file; output:\n%s\ndirlist:\n%s' % (result.output, str(dirlist))) AssertionError: recipetool did not create recipe file; output: NOTE: Fetching http://www.dest-unreach.org/socat/download/socat-1.7.3.0.tar.bz2... NOTE: Unpacking /srv/www/vhosts/autobuilder.yoctoproject.org/current_sources/socat-1.7.3.0.tar.bz2 to /tmp/recipetool-Uj7MIh/ NOTE: Recipe /tmp/recipetoolqaebTo9s/recipe/socat_1.7.3.0.bb has been created; further editing may be required to make it fully functional dirlist: ['socat', 'socat_1.7.3.0.bb'] (From OE-Core rev: 4be0e15f74cff85edca9de55248939fb438f30ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/recipetool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py
index 5b54ba60b4..72ee110876 100644
--- a/meta/lib/oeqa/selftest/recipetool.py
+++ b/meta/lib/oeqa/selftest/recipetool.py
@@ -410,9 +410,9 @@ class RecipetoolTests(RecipetoolBase):
410 srcuri = 'http://www.dest-unreach.org/socat/download/socat-%s.tar.bz2' % pv 410 srcuri = 'http://www.dest-unreach.org/socat/download/socat-%s.tar.bz2' % pv
411 result = runCmd('recipetool create %s -o %s' % (srcuri, temprecipe)) 411 result = runCmd('recipetool create %s -o %s' % (srcuri, temprecipe))
412 dirlist = os.listdir(temprecipe) 412 dirlist = os.listdir(temprecipe)
413 if len(dirlist) < 1 or not os.path.isfile(os.path.join(temprecipe, dirlist[0])): 413 if len(dirlist) < 1 or not os.path.isfile(os.path.join(temprecipe, 'socat_%s.bb' % pv)):
414 self.fail('recipetool did not create recipe file; output:\n%s\ndirlist:\n%s' % (result.output, str(dirlist))) 414 self.fail('recipetool did not create recipe file; output:\n%s\ndirlist:\n%s' % (result.output, str(dirlist)))
415 self.assertEqual(dirlist[0], 'socat_%s.bb' % pv, 'Recipe file incorrectly named') 415 self.assertIn('socat_%s.bb' % pv, dirlist, 'Recipe file incorrectly named')
416 checkvars = {} 416 checkvars = {}
417 checkvars['LICENSE'] = set(['Unknown', 'GPLv2']) 417 checkvars['LICENSE'] = set(['Unknown', 'GPLv2'])
418 checkvars['LIC_FILES_CHKSUM'] = set(['file://COPYING.OpenSSL;md5=5c9bccc77f67a8328ef4ebaf468116f4', 'file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263']) 418 checkvars['LIC_FILES_CHKSUM'] = set(['file://COPYING.OpenSSL;md5=5c9bccc77f67a8328ef4ebaf468116f4', 'file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263'])