Skip to content

Commit 0dc237d

Browse files
committed
Commit improvements
1 parent 2bf186a commit 0dc237d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

testgres/performance_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from .plugins.pg_probackup2.pg_probackup2.tests.basic_test import ProbackupTest
22

3+
34
class PerformanceTest(ProbackupTest):
45

56
def test_full_backup_perf_basic(self):

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, test_class: unittest.TestCase,
5959
self.execution_time = execution_time
6060

6161
def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
62-
skip_log_directory=False, expect_error=False, use_backup_dir=True, execution_time=False):
62+
skip_log_directory=False, expect_error=False, use_backup_dir=True):
6363
"""
6464
Run pg_probackup
6565
backup_dir: target directory for making backup
@@ -114,7 +114,7 @@ def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
114114
cmdline = ['gdbserver'] + ['localhost:' + str(gdb_port)] + cmdline
115115
print("pg_probackup gdb suspended, waiting gdb connection on localhost:{0}".format(gdb_port))
116116

117-
if execution_time:
117+
if self.execution_time:
118118
start_time = time.time()
119119
self.test_class.output = subprocess.check_output(
120120
cmdline,
@@ -225,8 +225,7 @@ def backup_node(
225225
old_binary=False, return_id=True, no_remote=False,
226226
env=None,
227227
expect_error=False,
228-
sync=False,
229-
execution_time=False
228+
sync=False
230229
):
231230
if options is None:
232231
options = []
@@ -266,7 +265,7 @@ def backup_node(
266265
cmd_list += ['--no-sync']
267266

268267
return self.run(cmd_list + options, gdb, old_binary, return_id, env=env,
269-
expect_error=expect_error, execution_time=execution_time)
268+
expect_error=expect_error)
270269

271270
def backup_replica_node(self, instance, node, data_dir=False, *,
272271
master, backup_type='full', datname=False,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy