summaryrefslogtreecommitdiff
path: root/tests/frontend/__init__.py
blob: 8cf7625a97ea86e11a79eac93d6ca020a8c58740 (plain)
1
2
3
4
5
6
7
8
9
10
import os
from buildstream import _yaml


# Shared function to configure the project.conf inline
#
def configure_project(path, config):
    config['name'] = 'test'
    config['element-path'] = 'elements'
    _yaml.dump(config, os.path.join(path, 'project.conf'))