Skip to content

Commit

Permalink
Merge pull request #6 from alexanderlaw/main
Browse files Browse the repository at this point in the history
Fix support for instance features
  • Loading branch information
AndrewBille authored Jul 7, 2023
2 parents 49fb6e4 + 605c3e9 commit 514bbb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run-benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def main(configfile, instances, benchmarks, resultsfile, resultsdir):
'see benchmark-results/.)')

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

0 comments on commit 514bbb5

Please sign in to comment.