Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitda5eb96

Browse files
committed
Stabilize tests.backup.BackupTest.test_backup_modes_archive
1 parentde497aa commitda5eb96

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎tests/backup.py

Lines 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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,12 @@ def backup_node(
980980
ifnotold_binary:
981981
cmd_list+= ['--no-sync']
982982

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

985991
defcheckdb_node(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp