1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Merge pull request #1505 from ThomasWaldmann/test-list-format-depr

borg list: test for --list-format deprecation
This commit is contained in:
enkore 2016-08-19 15:22:31 +02:00 committed by GitHub
commit 45fd66f6e1

View file

@ -1203,7 +1203,8 @@ def test_list_format(self):
self.cmd('init', self.repository_location)
test_archive = self.repository_location + '::test'
self.cmd('create', test_archive, src_dir)
self.cmd('list', '--list-format', '-', test_archive)
output_warn = self.cmd('list', '--list-format', '-', test_archive)
self.assert_in('--list-format" has been deprecated.', output_warn)
output_1 = self.cmd('list', test_archive)
output_2 = self.cmd('list', '--format', '{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}', test_archive)
output_3 = self.cmd('list', '--format', '{mtime:%s} {path}{NL}', test_archive)