From c065b26eab5d2845c67d78484cc2942f2be5c451 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Fri, 13 Apr 2007 23:49:42 +0000 Subject: lib/bittest/__ini__.py: bb.fetch.init is doing caching, set the TMPDIR, DL_DIR early enough We need to set the DL_DIR, TMPDIR more early as bb.fetch.init is caching the result of localpath() which can point to the default TMPDIR. By setting our TMPDIR and DL_DIR more early we make sure to have it set properly. For paranoia we set it again later on --- lib/bittest/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bittest/__init__.py b/lib/bittest/__init__.py index 7980d7b417..a2d3bac308 100644 --- a/lib/bittest/__init__.py +++ b/lib/bittest/__init__.py @@ -112,7 +112,7 @@ def run_tests(data,test_config,test_options, tests, options): """ Run tests using 'data' as base """ - + bbfiles = fileparser.find_files(bb.data.getVar('BBFILES', test_config).split(' ')) bb.note("Collected %d BitBake files" % len(bbfiles) ) @@ -145,6 +145,8 @@ def run_tests(data,test_config,test_options, tests, options): for machine in machines: machine_data = bb.data.createCopy(test_data) bb.data.setVar('MACHINE', machine, machine_data) + bb.data.setVar('TMPDIR', tmp_dir, machine_data) + bb.data.setVar('DL_DIR', src_dir, machine_data) try: bb.parse.handle(os.path.join('conf/machine',machine+'.conf'),machine_data,1) -- cgit 1.2.3-korg