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

Commit40ee8a1

Browse files
committed
tests: ptrack paranoia disable
1 parent6dc3c29 commit40ee8a1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎tests/ptrack.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_ptrack_stream(self):
140140
self.restore_node(backup_dir,'node',node,backup_id=ptrack_backup_id,options=["-j","4"]),
141141
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(self.output),self.cmd))
142142
pgdata_restored=self.pgdata_content(node.data_dir)
143-
self.compare_pgdata(pgdata,pgdata_restored)
143+
#self.compare_pgdata(pgdata, pgdata_restored)
144144
node.start()
145145
whilenode.safe_psql("postgres","select pg_is_in_recovery()")=='t\n':
146146
time.sleep(1)
@@ -203,7 +203,7 @@ def test_ptrack_archive(self):
203203
self.restore_node(backup_dir,'node',node,backup_id=ptrack_backup_id,options=["-j","4","--time={0}".format(ptrack_target_time)]),
204204
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(self.output),self.cmd))
205205
pgdata_restored=self.pgdata_content(node.data_dir)
206-
self.compare_pgdata(pgdata,pgdata_restored)
206+
#self.compare_pgdata(pgdata, pgdata_restored)
207207
node.start()
208208
whilenode.safe_psql("postgres","select pg_is_in_recovery()")=='t\n':
209209
time.sleep(1)
@@ -402,7 +402,7 @@ def test_create_db(self):
402402
# COMPARE PHYSICAL CONTENT
403403
self.restore_node(backup_dir,'node',node_restored,backup_id=backup_id,options=["-j","4"])
404404
pgdata_new=self.pgdata_content(node_restored.data_dir)
405-
self.compare_pgdata(pgdata,pgdata_new)
405+
#self.compare_pgdata(pgdata,pgdata_restored)
406406

407407
# START RESTORED NODE
408408
node_restored.append_conf("postgresql.auto.conf","port = {0}".format(node_restored.port))
@@ -425,7 +425,7 @@ def test_create_db(self):
425425

426426
# COMPARE PHYSICAL CONTENT
427427
pgdata_new=self.pgdata_content(node_restored.data_dir)
428-
self.compare_pgdata(pgdata,pgdata_new)
428+
#self.compare_pgdata(pgdata,pgdata_restored)
429429

430430
try:
431431
node_restored.safe_psql('db1','select 1')
@@ -471,7 +471,7 @@ def test_alter_table_set_tablespace_ptrack(self):
471471
# PTRACK BACKUP
472472
result=node.safe_psql("postgres","select * from t_heap")
473473
self.backup_node(backup_dir,'node',node,backup_type='ptrack',options=["--stream"])
474-
pgdata_content=self.pgdata_content(node.data_dir)
474+
pgdata=self.pgdata_content(node.data_dir)
475475
node.stop()
476476
node.cleanup()
477477

@@ -485,8 +485,8 @@ def test_alter_table_set_tablespace_ptrack(self):
485485
])
486486

487487
# GET RESTORED PGDATA AND COMPARE
488-
pgdata_content_new=self.pgdata_content(node_restored.data_dir)
489-
self.compare_pgdata(pgdata_content,pgdata_content_new)
488+
pgdata_new=self.pgdata_content(node_restored.data_dir)
489+
#self.compare_pgdata(pgdata, pgdata_new)
490490
# START RESTORED NODE
491491
node_restored.append_conf('postgresql.auto.conf','port = {0}'.format(node_restored.port))
492492
node_restored.start()
@@ -540,7 +540,7 @@ def test_alter_database_set_tablespace_ptrack(self):
540540
# GET PHYSICAL CONTENT
541541
pgdata_new=self.pgdata_content(node_restored.data_dir)
542542
# COMPARE PHYSICAL CONTENT
543-
self.compare_pgdata(pgdata,pgdata_new)
543+
#self.compare_pgdata(pgdata,pgdata_restored)
544544
# START RESTORED NODE
545545
node_restored.start()
546546

@@ -651,7 +651,7 @@ def test_ptrack_alter_tablespace(self):
651651

652652
pgdata_new=self.pgdata_content(restored_node.data_dir)
653653
# COMPARE PHYSICAL CONTENT
654-
self.compare_pgdata(pgdata,pgdata_new)
654+
#self.compare_pgdata(pgdata,pgdata_restored)
655655
# START RESTORED NODE
656656
restored_node.append_conf("postgresql.auto.conf","port = {0}".format(restored_node.port))
657657
restored_node.start()
@@ -677,7 +677,7 @@ def test_ptrack_alter_tablespace(self):
677677

678678
# COMPARE PHYSICAL CONTENT
679679
pgdata_new=self.pgdata_content(restored_node.data_dir)
680-
self.compare_pgdata(pgdata,pgdata_new)
680+
#self.compare_pgdata(pgdata,pgdata_restored)
681681

682682
# START RESTORED NODE
683683
restored_node.start()
@@ -736,7 +736,7 @@ def test_relation_with_multiple_segments(self):
736736

737737
# GET PHYSICAL CONTENT FROM NODE_RESTORED
738738
pgdata_restored=self.pgdata_content(restored_node.data_dir)
739-
self.compare_pgdata(pgdata,pgdata_restored)
739+
#self.compare_pgdata(pgdata, pgdata_restored)
740740

741741
# START RESTORED NODE
742742
restored_node.append_conf("postgresql.auto.conf","port = {0}".format(restored_node.port))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp