Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b2ae51d

Browse files
committed
try to catch python-test fail on pg-10
1 parent e7da596 commit b2ae51d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ make USE_PGXS=1 python_tests || status=$?
134134
deactivate
135135
set -x
136136

137-
if [ $status -ne 0 ]; then cat /tmp/postgres.log; fi
137+
if [ $status -ne 0 ]; then cat tests/python/tests.log; fi
138138

139139
# show Valgrind logs if necessary
140140
if [ "$LEVEL" = "nightmare" ]; then

tests/python/partitioning_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
import unittest
2222

2323
from distutils.version import LooseVersion
24-
from testgres import get_new_node, get_pg_version
24+
from testgres import get_new_node, get_pg_version, configure_testgres
2525

26-
# set setup base logging config, it can be turned on by `use_logging`
26+
# set setup base logging config, it can be turned on by `use_python_logging`
2727
# parameter on node setup
28+
# configure_testgres(use_python_logging=True)
2829

2930
import logging
3031
import logging.config
@@ -1088,6 +1089,8 @@ def test_concurrent_updates(self):
10881089
SELECT create_range_partitions('test1', 'b', 1, 5);
10891090
'''
10901091

1092+
configure_testgres(use_python_logging=True)
1093+
10911094
with self.start_new_pathman_cluster(enable_partitionrouter=True) as node:
10921095
node.safe_psql(create_sql)
10931096

0 commit comments

Comments
 (0)