Skip to content

Commit 2598c99

Browse files
committed
Print octal permissions in tests compare_pgdata()
1 parent e865c83 commit 2598c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,10 +1756,10 @@ def compare_pgdata(self, original_pgdata, restored_pgdata):
17561756
):
17571757
fail = True
17581758
error_message += '\nFile permissions mismatch:\n'
1759-
error_message += ' File_old: {0} Permissions: {1}\n'.format(
1759+
error_message += ' File_old: {0} Permissions: {1:o}\n'.format(
17601760
os.path.join(original_pgdata['pgdata'], file),
17611761
original_pgdata['files'][file]['mode'])
1762-
error_message += ' File_new: {0} Permissions: {1}\n'.format(
1762+
error_message += ' File_new: {0} Permissions: {1:o}\n'.format(
17631763
os.path.join(restored_pgdata['pgdata'], file),
17641764
restored_pgdata['files'][file]['mode'])
17651765

0 commit comments

Comments
 (0)