This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch valentindavid/flatpak-demo in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit da42c7d4a4922b3ea41e969aa3c25b1f331b25be Author: Valentin David <[email protected]> AuthorDate: Wed Jun 27 19:08:43 2018 +0200 tests/format/include.py: Test use of conditionals in included fragment. --- tests/format/include.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/format/include.py b/tests/format/include.py index b09830a..7a1a15a 100644 --- a/tests/format/include.py +++ b/tests/format/include.py @@ -187,3 +187,19 @@ def test_junction_do_not_use_included_overrides(cli, tmpdir, datafiles): loaded = _yaml.load_data(result.output) assert 'main_override' in loaded assert 'included_override' not in loaded + + [email protected](DATA_DIR) +def test_conditional_in_fragment(cli, tmpdir, datafiles): + project = os.path.join(str(datafiles), 'conditional') + + result = cli.run(project=project, args=[ + '-o', 'build_arch', 'x86_64', + 'show', + '--deps', 'none', + '--format', '%{vars}', + 'element.bst']) + result.assert_success() + loaded = _yaml.load_data(result.output) + assert 'size' in loaded + assert loaded['size'] == '8'
