Skip to content

Commit ddb3198

Browse files
committed
Add some more debugging to processing algorithm test
Trying to pinpoint which algorithm occasionally segfaults during test runs
1 parent b9c7b12 commit ddb3198

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/plugins/processing/tests/AlgorithmsTestBase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def test_algorithms(self):
8383
algorithm_tests = yaml.load(stream)
8484

8585
if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None:
86-
for algtest in algorithm_tests['tests']:
86+
for idx, algtest in enumerate(algorithm_tests['tests']):
87+
print('About to start {} of {}: "{}"'.format(idx, len(algorithm_tests['tests']), algtest['name']))
8788
yield self.check_algorithm, algtest['name'], algtest
8889

8990
def check_algorithm(self, name, defs):
@@ -102,6 +103,7 @@ def check_algorithm(self, name, defs):
102103
alg = ScriptAlgorithm(filePath)
103104
alg.initAlgorithm()
104105
else:
106+
print('Running alg: "{}"'.format(defs['algorithm']))
105107
alg = QgsApplication.processingRegistry().createAlgorithmById(defs['algorithm'])
106108

107109
parameters = {}

0 commit comments

Comments
 (0)