Skip to content

Commit f2c000c

Browse files
demonolockvshepard
andauthored
Fix auto conf test (#214)
* Fix test_set_auto_conf for Postgresql 10, 11 * Remove allow failures --------- Co-authored-by: vshepard <v.shepard@postgrespro.ru>
1 parent 438e845 commit f2c000c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
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

tests/test_simple.py

Lines changed: 4 additions & 3 deletions
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)
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