Skip to content

Commit 5b16c81

Browse files
committed
Don't check for instance features in absence of the attribute
1 parent 99922c1 commit 5b16c81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: run-benchmarks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def main(configfile, instances, benchmarks, resultsfile, resultsdir):
249249
'see benchmark-results/.)')
250250

251251
instance_features = instance.get('features')
252-
if re.match(r'\bperf\b', instance_features):
252+
if instance_features is not None and \
253+
re.match(r'\bperf\b', instance_features):
253254
res = run(f'docker exec -t {container_id} bash -c '
254255
f'pg_ctl_stop',
255256
shell=True, check=False, stdout=subprocess.PIPE)

0 commit comments

Comments
 (0)