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

Commit d020b61

Browse files
committed
one more try to catch python-tests fail on pg-10
1 parent b2ae51d commit d020b61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-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 tests/python/tests.log; fi
137+
if [ $status -ne 0 ]; then tail -n 200 tests/python/tests.log; fi
138138

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

tests/python/partitioning_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,6 @@ def test_concurrent_updates(self):
10891089
SELECT create_range_partitions('test1', 'b', 1, 5);
10901090
'''
10911091

1092-
configure_testgres(use_python_logging=True)
1093-
10941092
with self.start_new_pathman_cluster(enable_partitionrouter=True) as node:
10951093
node.safe_psql(create_sql)
10961094

@@ -1131,6 +1129,8 @@ def make_updates(node, count):
11311129
else:
11321130
suite = unittest.TestLoader().loadTestsFromTestCase(Tests)
11331131

1132+
configure_testgres(use_python_logging=True)
1133+
11341134
result = unittest.TextTestRunner(verbosity=2, failfast=True).run(suite)
11351135
if not result.wasSuccessful():
11361136
sys.exit(1)

0 commit comments

Comments
 (0)