summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-22 13:18:00 -0500
committerChris Larson <chris_larson@mentor.com>2010-12-29 23:51:07 -0700
commit49d8852c231e4437a9b29e0986a9acf365559546 (patch)
treecf66c6bf67c45cbfed97d381a456396ddde66f1b /lib/bb/runqueue.py
parent8bc6f3eb7f735e606202393542b8b610d0cbc3d8 (diff)
downloadbitbake-49d8852c231e4437a9b29e0986a9acf365559546.tar.gz
runqueue: start implementing quieterrors
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index ba1d08473..f5fc7bfff 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1051,7 +1051,7 @@ class RunQueueExecute:
self.rq.state = runQueueComplete
return
- def fork_off_task(self, fn, task, taskname):
+ def fork_off_task(self, fn, task, taskname, quieterrors=False):
sys.stdout.flush()
sys.stderr.flush()
try:
@@ -1083,7 +1083,8 @@ class RunQueueExecute:
the_data.setVar('BB_TASKHASH', self.rqdata.runq_hash[task])
bb.build.exec_task(fn, taskname, the_data)
except Exception as exc:
- logger.critical(str(exc))
+ if not quieterrors:
+ logger.critical(str(exc))
os._exit(1)
os._exit(0)
return pid, pipein, pipeout
@@ -1515,6 +1516,9 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
self.rq.state = runQueueRunInit
return True
+ def fork_off_task(self, fn, task, taskname):
+ return RunQueueExecute.fork_off_task(self, fn, task, taskname, quieterrors=True)
+
class TaskFailure(Exception):
"""
Exception raised when a task in a runqueue fails