diff mbox

[4/4] hda-emu/tester: Fix calculation of machines

Message ID 1409840486-14961-5-git-send-email-david.henningsson@canonical.com (mailing list archive)
State Accepted
Delegated to: Takashi Iwai
Headers show

Commit Message

David Henningsson Sept. 4, 2014, 2:21 p.m. UTC
Previously, if a machine had a modem codec, it was not included
in the total count of machines.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 tester/summary.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tester/summary.py b/tester/summary.py
index 640d1c1..4bf53b6 100755
--- a/tester/summary.py
+++ b/tester/summary.py
@@ -90,7 +90,9 @@  def main():
                         if line.find("is a modem codec, aborting"):
                             skip_this = True
 
-                if (not skip_this) and (r.errors > 0 or r.warnings > 0):
+                if skip_this:
+                    skip_this = False
+                elif (r.errors > 0 or r.warnings > 0):
                     fail_this = True
                     errors += r.errors
                     warnings += r.warnings