summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-04-23 21:29:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-29 11:17:22 +0100
commit1bc292fe253176963f304ed027e3ed32b00549b6 (patch)
treef0ab3cb88d638c0c0c6a562eed597436b2b497d4
parent929cebfb9730a541e1c511151ca09a03d5287a5e (diff)
downloadpoky-1bc292fe253176963f304ed027e3ed32b00549b6.tar.gz
selftest/bbtests: improve download rename test
This test was assuming the format of SRC_URI so broke when SRC_URI was changed. Fix the test by hardcoding a complete SRC_URI instead of appending and hoping for the best. (From OE-Core rev: afe1d3073a435ef6c838cc676748842af4c4af83) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index d073433cd5..46e09f509f 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -151,15 +151,16 @@ doesn't exist, yet fetcher didn't report any error. bitbake output: %s" % result
151 151
152 @testcase(171) 152 @testcase(171)
153 def test_rename_downloaded_file(self): 153 def test_rename_downloaded_file(self):
154 # TODO unique dldir instead of using cleanall
155 # TODO: need to set sstatedir?
154 self.write_config("""DL_DIR = \"${TOPDIR}/download-selftest\" 156 self.write_config("""DL_DIR = \"${TOPDIR}/download-selftest\"
155SSTATE_DIR = \"${TOPDIR}/download-selftest\" 157SSTATE_DIR = \"${TOPDIR}/download-selftest\"
156""") 158""")
157 self.track_for_cleanup(os.path.join(self.builddir, "download-selftest")) 159 self.track_for_cleanup(os.path.join(self.builddir, "download-selftest"))
158 160
159 data = 'SRC_URI_append = ";downloadfilename=test-aspell.tar.gz"' 161 data = 'SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz;downloadfilename=test-aspell.tar.gz"'
160 self.write_recipeinc('aspell', data) 162 self.write_recipeinc('aspell', data)
161 bitbake('-ccleanall aspell') 163 result = bitbake('-f -c fetch aspell', ignore_status=True)
162 result = bitbake('-c fetch aspell', ignore_status=True)
163 self.delete_recipeinc('aspell') 164 self.delete_recipeinc('aspell')
164 self.assertEqual(result.status, 0, msg = "Couldn't fetch aspell. %s" % result.output) 165 self.assertEqual(result.status, 0, msg = "Couldn't fetch aspell. %s" % result.output)
165 dl_dir = get_bb_var("DL_DIR") 166 dl_dir = get_bb_var("DL_DIR")