Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da5eb96

Browse filesBrowse files
committed
Stabilize tests.backup.BackupTest.test_backup_modes_archive
1 parent de497aa commit da5eb96
Copy full SHA for da5eb96

File tree

2 files changed

+10
-4
lines changed
Filter options

2 files changed

+10
-4
lines changed

‎tests/backup.py

Copy file name to clipboardExpand all lines: tests/backup.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ def test_backup_modes_archive(self):
5757
backup_dir, 'node', node, backup_type="page")
5858

5959
show_backup_1 = self.show_pb(backup_dir, 'node')[1]
60-
self.assertEqual(show_backup['status'], "OK")
61-
self.assertEqual(show_backup['backup-mode'], "PAGE")
60+
self.assertEqual(show_backup_1['status'], "OK")
61+
self.assertEqual(show_backup_1['backup-mode'], "PAGE")
6262

6363
# delta backup mode
6464
delta_backup_id = self.backup_node(
6565
backup_dir, 'node', node, backup_type="delta")
6666

6767
show_backup_2 = self.show_pb(backup_dir, 'node')[2]
68-
self.assertEqual(show_backup['status'], "OK")
69-
self.assertEqual(show_backup['backup-mode'], "DELTA")
68+
self.assertEqual(show_backup_2['status'], "OK")
69+
self.assertEqual(show_backup_2['backup-mode'], "DELTA")
7070

7171
# Check parent backup
7272
self.assertEqual(

‎tests/helpers/ptrack_helpers.py

Copy file name to clipboardExpand all lines: tests/helpers/ptrack_helpers.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,12 @@ def backup_node(
980980
if not old_binary:
981981
cmd_list += ['--no-sync']
982982

983+
if self.verbose:
984+
cmd_list += [
985+
'--log-level-file=VERBOSE',
986+
'--log-directory={0}'.format(node.logs_dir)
987+
]
988+
983989
return self.run_pb(cmd_list + options, asynchronous, gdb, old_binary, return_id, env=env)
984990

985991
def checkdb_node(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.