summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-01-24 16:04:36 +0100
committerTomas Bzatek <tbzatek@redhat.com>2013-01-24 16:04:36 +0100
commitd4c9c43daf7abd3831862ea8f794188ac978f14b (patch)
treedd53845f768fcbb3f741dec4e4bfbbe8a127d437 /test
parent91b33572407ccb7d808e1df775c89d1612355f80 (diff)
downloadgvfs-d4c9c43daf7abd3831862ea8f794188ac978f14b.tar.gz
gvfs-test: Count error numbers properly
https://bugzilla.gnome.org/show_bug.cgi?id=691568
Diffstat (limited to 'test')
-rwxr-xr-xtest/gvfs-test8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index 45999a78..5eb85e3a 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):