diff options
author | Ross Burton <ross.burton@intel.com> | 2017-09-15 12:15:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:39:46 +0000 |
commit | 24be54c87c1ac3bbc9958cb18bc846a2422d2694 (patch) | |
tree | 4ce6329480be6b945d4f3bd0e8d98a7cfc253011 /meta | |
parent | 448d0be779833ba4297619248a772c428f4ff162 (diff) | |
download | poky-24be54c87c1ac3bbc9958cb18bc846a2422d2694.tar.gz |
oeqa/selftest/recipetool: use stable tarball for recipetool create test
GitHub dynamically generates the /archive/ tarballs but we're encoding checksums
in the test suite. Change the URL to use a static tarball, and update the
checksums.
(From OE-Core rev: 9c668f9ff989a34e615e2ecc051dadbfe24a5bb4)
(From OE-Core rev: 20f54eb2b2a306858f330eb50205e594d53767ec)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/recipetool.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py index 4344f9fdeb..dc55a5e49f 100644 --- a/meta/lib/oeqa/selftest/recipetool.py +++ b/meta/lib/oeqa/selftest/recipetool.py | |||
@@ -368,16 +368,16 @@ class RecipetoolTests(RecipetoolBase): | |||
368 | # Try adding a recipe | 368 | # Try adding a recipe |
369 | tempsrc = os.path.join(self.tempdir, 'srctree') | 369 | tempsrc = os.path.join(self.tempdir, 'srctree') |
370 | os.makedirs(tempsrc) | 370 | os.makedirs(tempsrc) |
371 | recipefile = os.path.join(self.tempdir, 'logrotate_3.8.7.bb') | 371 | recipefile = os.path.join(self.tempdir, 'logrotate_3.12.3.bb') |
372 | srcuri = 'https://github.com/logrotate/logrotate/archive/r3-8-7.tar.gz' | 372 | srcuri = 'https://github.com/logrotate/logrotate/releases/download/3.12.3/logrotate-3.12.3.tar.xz' |
373 | result = runCmd('recipetool create -o %s %s -x %s' % (recipefile, srcuri, tempsrc)) | 373 | result = runCmd('recipetool create -o %s %s -x %s' % (recipefile, srcuri, tempsrc)) |
374 | self.assertTrue(os.path.isfile(recipefile)) | 374 | self.assertTrue(os.path.isfile(recipefile)) |
375 | checkvars = {} | 375 | checkvars = {} |
376 | checkvars['LICENSE'] = 'GPLv2' | 376 | checkvars['LICENSE'] = 'GPLv2' |
377 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=18810669f13b87348459e611d31ab760' | 377 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263' |
378 | checkvars['SRC_URI'] = 'https://github.com/logrotate/logrotate/archive/r3-8-7.tar.gz' | 378 | checkvars['SRC_URI'] = 'https://github.com/logrotate/logrotate/releases/download/${PV}/logrotate-${PV}.tar.xz' |
379 | checkvars['SRC_URI[md5sum]'] = '6b1aa0e0d07eda3c9a2526520850397a' | 379 | checkvars['SRC_URI[md5sum]'] = 'a560c57fac87c45b2fc17406cdf79288' |
380 | checkvars['SRC_URI[sha256sum]'] = 'dece4bfeb9d8374a0ecafa34be139b5a697db5c926dcc69a9b8715431a22e733' | 380 | checkvars['SRC_URI[sha256sum]'] = '2e6a401cac9024db2288297e3be1a8ab60e7401ba8e91225218aaf4a27e82a07' |
381 | self._test_recipe_contents(recipefile, checkvars, []) | 381 | self._test_recipe_contents(recipefile, checkvars, []) |
382 | 382 | ||
383 | @testcase(1194) | 383 | @testcase(1194) |