tests: Add include test case for multiple files in sub-dirs

This stresses the previously broken case of the incorrectly detected
repository root while including files.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2021-08-18 21:24:54 +02:00
parent 2077900b4e
commit c7bd8393aa

View File

@ -230,6 +230,24 @@ header:
'rmiss': [
]
},
# Include two files from another repo in sub-directories:
{
'fdict': {
'x.yml': header.format(
' includes: [{repo: rep, file: dir1/y.yml}]'),
'/rep/dir1/y.yml': header.format(
' includes: ["dir2/z.yml"]'),
'/rep/dir2/z.yml': header.format('\nv:')
},
'rdict': {
'rep': '/rep'
},
'conf': {
'v': None
},
'rmiss': [
]
},
]
self.util_include_content(testvector, monkeypatch)