Skip to content

Commit 514bbb5

Browse files
authored
Merge pull request #6 from alexanderlaw/main
Fix support for instance features
2 parents 49fb6e4 + 605c3e9 commit 514bbb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)