diff options
author | Holger Freyther <zecke@selfish.org> | 2007-04-13 23:49:42 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2007-04-13 23:49:42 +0000 |
commit | c065b26eab5d2845c67d78484cc2942f2be5c451 (patch) | |
tree | 92632e075f24daf4ac52db608f6da43caaf8642d | |
parent | 20ee8816ea85eb84ff286fb3ab83012dacc76dbd (diff) | |
download | oetest-c065b26eab5d2845c67d78484cc2942f2be5c451.tar.gz |
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
-rw-r--r-- | lib/bittest/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |