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:
commit
45fd66f6e1
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue