Skip to content

Commit f2c000c

Browse files
demonolockvshepard
and
vshepard
authored
Fix auto conf test (#214)
* Fix test_set_auto_conf for Postgresql 10, 11 * Remove allow failures --------- Co-authored-by: vshepard <[email protected]>
1 parent 438e845 commit f2c000c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Diff for: .travis.yml

-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,3 @@ env:
2929
- TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=10
3030
- TEST_PLATFORM=std.all PYTHON_VERSION=3 PG_VERSION=17
3131
- TEST_PLATFORM=ubuntu-24_04 PYTHON_VERSION=3 PG_VERSION=17
32-
33-
matrix:
34-
allow_failures:
35-
- env: TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=11
36-
- env: TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=10

Diff for: tests/test_simple.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1464,9 +1464,6 @@ def test_set_auto_conf(self):
14641464
["archive_command",
14651465
"cp '%p' \"/mnt/server/archivedir/%f\"",
14661466
"'cp \\'%p\\' \"/mnt/server/archivedir/%f\""],
1467-
["restore_command",
1468-
'cp "/mnt/server/archivedir/%f" \'%p\'',
1469-
"'cp \"/mnt/server/archivedir/%f\" \\'%p\\''"],
14701467
["log_line_prefix",
14711468
"'\n\r\t\b\\\"",
14721469
"'\\\'\\n\\r\\t\\b\\\\\""],
@@ -1480,6 +1477,10 @@ def test_set_auto_conf(self):
14801477
3,
14811478
"3"]
14821479
]
1480+
if pg_version_ge('12'):
1481+
testData.append(["restore_command",
1482+
'cp "/mnt/server/archivedir/%f" \'%p\'',
1483+
"'cp \"/mnt/server/archivedir/%f\" \\'%p\\''"])
14831484

14841485
with get_new_node() as node:
14851486
node.init().start()

0 commit comments

Comments
 (0)