aboutsummaryrefslogtreecommitdiff
path: root/test_gdb_dejagnu.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2014-01-02 13:51:15 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-01-04 01:54:24 +0000
commita9c561a571bdbbb99d97d89ce1a242e989165d9e (patch)
tree5fab5b64d189b606df45b6933b0cfd5823ada694 /test_gdb_dejagnu.py
parent0285cf0721e47c7e608dd090c459e327ce3e2679 (diff)
downloadtoolchain-utils-a9c561a571bdbbb99d97d89ce1a242e989165d9e.tar.gz
gdb dejagnu: updata arm baseline.
BUG=None TEST=None Change-Id: I25eb89ac54801d1e35807ba85689cf1256b4cd6d Reviewed-on: https://chrome-internal-review.googlesource.com/151037 Reviewed-by: Han Shen <shenhan@google.com> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'test_gdb_dejagnu.py')
-rwxr-xr-xtest_gdb_dejagnu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_gdb_dejagnu.py b/test_gdb_dejagnu.py
index 09af81fb..d7a21abc 100755
--- a/test_gdb_dejagnu.py
+++ b/test_gdb_dejagnu.py
@@ -52,10 +52,10 @@ class DejagnuAdapter(object):
# Parse the output log to determine how many failures we have.
# Return -1 if parse output log failed.
-def GetNumNewFailures(string):
- if not string:
+def GetNumNewFailures(result):
+ if not result:
return 0
- return len(string.splitlines())
+ return len(result)
# Do not throw any exception in this function!