summaryrefslogtreecommitdiff
path: root/tests/format
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2018-10-23 09:29:08 +0100
committerJürg Billeter <j@bitron.ch>2019-02-11 09:24:48 +0000
commit1ed63e542797f5097a1c9a1952fd50e435e1783a (patch)
tree8e8704a4725c84d4072e4ac755a6deaccd152da4 /tests/format
parentbb6a692de806dbceeba6eda95a3987cf2da576c1 (diff)
downloadbuildstream-1ed63e542797f5097a1c9a1952fd50e435e1783a.tar.gz
_includes: better provenance on recursive include
Use the provenance of the include block, instead of the whole node.
Diffstat (limited to 'tests/format')
-rw-r--r--tests/format/include.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/format/include.py b/tests/format/include.py
index 1db37083e..7344919ba 100644
--- a/tests/format/include.py
+++ b/tests/format/include.py
@@ -222,7 +222,7 @@ def test_inner(cli, datafiles):
@pytest.mark.datafiles(DATA_DIR)
-def test_recusive_include(cli, tmpdir, datafiles):
+def test_recursive_include(cli, tmpdir, datafiles):
project = os.path.join(str(datafiles), 'recursive')
result = cli.run(project=project, args=[
@@ -231,6 +231,7 @@ def test_recusive_include(cli, tmpdir, datafiles):
'--format', '%{vars}',
'element.bst'])
result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.RECURSIVE_INCLUDE)
+ assert 'line 2 column 2' in result.stderr
@pytest.mark.datafiles(DATA_DIR)