blob: 9444fbbad76670b943b1c3175f22a52187ebfddc [file] [log] [blame]
import os
import pytest
from buildstream import _yaml
from tests.testutils import cli_integration as cli
pytestmark = pytest.mark.integration
DATA_DIR = os.path.join(
def test_stack(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
checkout = os.path.join(, 'checkout')
element_name = 'stack/stack.bst'
res =, args=['build', element_name])
assert res.exit_code == 0, args=['checkout', element_name, checkout])
assert res.exit_code == 0
with open(os.path.join(checkout, 'hi')) as f:
hi =
with open(os.path.join(checkout, 'another-hi')) as f:
another_hi =
assert hi == "Hi\n"
assert another_hi == "Another hi\n"