[gvfs] gvfs-test: Count error numbers properly



commit d4c9c43daf7abd3831862ea8f794188ac978f14b
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Thu Jan 24 16:04:36 2013 +0100

    gvfs-test: Count error numbers properly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691568

 test/gvfs-test |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index 45999a7..5eb85e3 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -461,9 +461,9 @@ Subsystem sftp %(sftp_server)s
         '''Show sshd log output on failed tests'''
 
         if result:
-            orig_err_fail = result.errors + result.failures
+            orig_err_fail = len(result.errors) + len(result.failures)
         super().run(result)
-        if result and result.errors + result.failures > orig_err_fail and hasattr(self, 'sshd'):
+        if result and len(result.errors) + len(result.failures) > orig_err_fail and hasattr(self, 'sshd'):
             print('\n----- sshd log -----\n%s\n------\n' % self.sshd.stderr.read())
 
     def test_rsa(self):
@@ -753,10 +753,10 @@ ncalrpc dir = %(workdir)s/samba
         '''Show smbd log output on failed tests'''
 
         if result:
-            orig_err_fail = result.errors + result.failures
+            orig_err_fail = len(result.errors) + len(result.failures)
         super().run(result)
         if hasattr(self, 'smbd'):
-            if result and result.errors + result.failures > orig_err_fail:
+            if result and len(result.errors) + len(result.failures) > orig_err_fail:
                 print('\n----- smbd log -----\n%s\n------\n' % self.smbd.stdout.read())
 
     def test_anonymous(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]