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


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