From 7ea701f6f755097d0ff941a83030b915760a6bc8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 1 Nov 2015 00:01:23 +0100 Subject: [PATCH] fix test failure for borg.exe fatal error is rc 2 now (EXIT_ERROR) --- borg/testsuite/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 3ed0fe027..78497e42a 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -384,7 +384,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): self._set_repository_id(self.repository_path, repository_id) self.assert_equal(repository_id, self._extract_repository_id(self.repository_path)) if self.FORK_DEFAULT: - self.cmd('create', self.repository_location + '::test.2', 'input', exit_code=1) # fails + self.cmd('create', self.repository_location + '::test.2', 'input', exit_code=EXIT_ERROR) else: self.assert_raises(Cache.EncryptionMethodMismatch, lambda: self.cmd('create', self.repository_location + '::test.2', 'input')) @@ -397,7 +397,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): shutil.rmtree(self.repository_path + '_encrypted') os.rename(self.repository_path + '_unencrypted', self.repository_path + '_encrypted') if self.FORK_DEFAULT: - self.cmd('create', self.repository_location + '_encrypted::test.2', 'input', exit_code=1) # fails + self.cmd('create', self.repository_location + '_encrypted::test.2', 'input', exit_code=EXIT_ERROR) else: self.assert_raises(Cache.RepositoryAccessAborted, lambda: self.cmd('create', self.repository_location + '_encrypted::test.2', 'input'))