diff options
author | Thomas Waldmann <tw@waldmann-edv.de> | 2016-08-19 14:55:49 +0200 |
---|---|---|
committer | Thomas Waldmann <tw@waldmann-edv.de> | 2016-08-19 14:55:49 +0200 |
commit | 53d14e96de9741ea2fdcba9a74c68b455631b7d4 (patch) | |
tree | 243d7140f90cace3d9c310b23271f4594c25aea4 /src | |
parent | 32e84f33e9b161d3403bb73e3cf0e4227650ab2c (diff) |
borg list: test for --list-format deprecation
Diffstat (limited to 'src')
-rw-r--r-- | src/borg/testsuite/archiver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 0d4a5441b..12a7f4172 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -1203,7 +1203,8 @@ class ArchiverTestCase(ArchiverTestCaseBase): 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) |