summaryrefslogtreecommitdiff
path: root/buildstream2/testing/_utils/__init__.py
blob: 79b1d53e8fe40c1969e818c708dcc3737e51c4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
import os

from buildstream2 import _yaml
from .junction import generate_junction


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'))