Skip to content

Commit 4b048ba

Browse files
committed
tests: minor changes
1 parent 2df3953 commit 4b048ba

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/compatibility.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
import subprocess
33
import os
4-
from .helpers.ptrack_helpers import ProbackupTest, ProbackupException, archive_script
4+
from .helpers.ptrack_helpers import ProbackupTest, ProbackupException
55
from sys import exit
66

77
module_name = 'compatibility'
@@ -34,7 +34,7 @@ def test_show_previous_version_catalog(self):
3434

3535
node.pgbench_init(scale=10)
3636

37-
# FULL backup
37+
# FULL backup with old binary
3838
self.backup_node(
3939
backup_dir, 'node', node, old_binary=True)
4040

@@ -44,7 +44,7 @@ def test_show_previous_version_catalog(self):
4444
self.show_pb(backup_dir)
4545
self.validate_pb(backup_dir)
4646

47-
# RESTORE
47+
# RESTORE old FULL with new binary
4848
node_restored = self.make_simple_node(
4949
base_dir="{0}/{1}/node_restored".format(module_name, fname))
5050

@@ -58,7 +58,7 @@ def test_show_previous_version_catalog(self):
5858
pgdata_restored = self.pgdata_content(node_restored.data_dir)
5959
self.compare_pgdata(pgdata, pgdata_restored)
6060

61-
# Incremental BACKUP
61+
# Incremental BACKUP with old binary
6262
pgbench = node.pgbench(
6363
stdout=subprocess.PIPE,
6464
stderr=subprocess.STDOUT,

tests/helpers/ptrack_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def show_config(self, backup_dir, instance, old_binary=False):
840840
"-B", backup_dir,
841841
"--instance={0}".format(instance)
842842
]
843+
843844
res = self.run_pb(cmd_list, old_binary=old_binary).splitlines()
844845
for line in res:
845846
if not line.startswith('#'):

0 commit comments

Comments
 (0)