Skip to content

Commit 2ec247d

Browse files
committed
tests: minor fixes
1 parent ab2d595 commit 2ec247d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

tests/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def load_tests(loader, tests, pattern):
1616
if os.environ['PG_PROBACKUP_TEST_BASIC'] == 'ON':
1717
loader.testMethodPrefix = 'test_basic'
1818

19+
if 'PG_PROBACKUP_PTRACK' in os.environ:
20+
if os.environ['PG_PROBACKUP_PTRACK'] == 'ON':
21+
suite.addTests(loader.loadTestsFromModule(ptrack))
22+
1923
# suite.addTests(loader.loadTestsFromModule(auth_test))
2024
suite.addTests(loader.loadTestsFromModule(archive))
2125
suite.addTests(loader.loadTestsFromModule(backup))
@@ -49,10 +53,6 @@ def load_tests(loader, tests, pattern):
4953
suite.addTests(loader.loadTestsFromModule(time_stamp))
5054
suite.addTests(loader.loadTestsFromModule(validate))
5155

52-
if 'PG_PROBACKUP_PTRACK' in os.environ:
53-
if os.environ['PG_PROBACKUP_PTRACK'] == 'ON':
54-
suite.addTests(loader.loadTestsFromModule(ptrack))
55-
5656
return suite
5757

5858
# test_pgpro434_2 unexpected success

tests/merge.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,9 +1632,7 @@ def test_losing_file_after_failed_merge(self):
16321632
gdb.run_until_break()
16331633

16341634
gdb.set_breakpoint('fio_fwrite')
1635-
gdb.continue_execution_until_break()
1636-
1637-
gdb._execute('bt')
1635+
gdb.continue_execution_until_break(2)
16381636

16391637
gdb._execute('signal SIGKILL')
16401638

0 commit comments

Comments
 (0)