If there were errors in a function which had dependencies, then its
dependencies will never run--but this isn't a deadlock. The easy
way to get around this is to simply not print the message if anything
failed.
Risk: Low
Visibility: Only to developers.
Signed-off-by: Jeremy Orlow <jorlow@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2022 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/parallel.py b/utils/parallel.py
index ba8af79..00b2bf9 100644
--- a/utils/parallel.py
+++ b/utils/parallel.py
@@ -78,7 +78,7 @@
if len(self.functions[dependent]) == 0:
self.ready_to_run.append(dependent)
- if len(self.functions) > 0:
+ if len(self.functions) > 0 and len(errors) == 0:
errors.append("Deadlock detected")
if len(errors) > 0: