]> arthur.barton.de Git - bup.git/commitdiff
tmetadata.py: print saved_errors in from_path test
authorRob Browning <rlb@defaultvalue.org>
Sat, 31 Jan 2015 18:06:26 +0000 (12:06 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 31 Jan 2015 18:21:45 +0000 (12:21 -0600)
And prefix saved_errors with 'saved_errors:' in both
test_from_path_error and test_apply_to_path_restricted_access.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tmetadata.py

index 8f670f7454a4c44c28528c2825aee07aad1cc42a..126e1d7d0162a06b6200d49c9668d1effa91635f 100644 (file)
@@ -171,6 +171,7 @@ def test_from_path_error():
     os.chmod(path, 000)
     metadata.from_path(path, archive_path=path, save_symlinks=True)
     if metadata.get_linux_file_attr:
+        print >> sys.stderr, 'saved_errors:', helpers.saved_errors
         WVPASS(len(helpers.saved_errors) == 1)
         errmsg = _first_err()
         WVPASS(errmsg.startswith('read Linux attr'))
@@ -211,7 +212,7 @@ def test_apply_to_path_restricted_access():
     WVPASSEQ(m.path, path)
     os.chmod(parent, 000)
     m.apply_to_path(path)
-    print >> sys.stderr, helpers.saved_errors
+    print >> sys.stderr, 'saved_errors:', helpers.saved_errors
     expected_errors = ['utime: ']
     if m.linux_attr and _linux_attr_supported(tmpdir):
         expected_errors.append('Linux chattr: ')