summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 19:54:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-05 13:12:38 +0000
commit1caf4bf6137bafbf4c4309c3e02d46b80c9e7a34 (patch)
tree2490cf1906e1d9033ffa52ad47e3cdebfff312cd
parentbc954f74620959703a0e921fcac3a6892675fe0d (diff)
downloadbitbake-1caf4bf6137bafbf4c4309c3e02d46b80c9e7a34.tar.gz
When performing dry runs, include the task fork/execution part of the process to ensure the full chain is tested
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/runqueue.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 0e83d0540..15d3d004a 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1163,7 +1163,8 @@ class RunQueueExecute:
logger.critical(str(exc))
os._exit(1)
try:
- ret = bb.build.exec_task(fn, taskname, the_data)
+ if not self.cooker.configuration.dry_run:
+ ret = bb.build.exec_task(fn, taskname, the_data)
os._exit(ret)
except:
os._exit(1)
@@ -1346,12 +1347,6 @@ class RunQueueExecuteTasks(RunQueueExecute):
self.rqdata.get_user_idstring(task))
self.task_skip(task)
return True
- elif self.cooker.configuration.dry_run:
- self.runq_running[task] = 1
- self.runq_buildable[task] = 1
- self.stats.taskActive()
- self.task_complete(task)
- return True
taskdep = self.rqdata.dataCache.task_deps[fn]
if 'noexec' in taskdep and taskname in taskdep['noexec']: