tests: Add failing test with repository includes

Add a new test to test_commands.py which:
 * Has an incomplete definition of externalrepo
 * Defines a local repository, subrepo
 * Includes a file from subrepo
 * The included file completes the definition of externalrepo
 * It also attempts to include a file from externalrepo

This test previously failed with the error message "No such file or
directory: '.../test_commands/tests/test_layers/test.yml'"

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Peter Hoyes
2022-07-08 16:45:10 +02:00
committed by Jan Kiszka
parent 34983c13ee
commit 7647d7ad3e
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
true

View File

@@ -0,0 +1,10 @@
header:
version: 11
includes:
- repo: externalrepo
file: tests/test_layers/test.yml
repos:
externalrepo:
url: https://github.com/siemens/kas.git
path: externalrepo

View File

@@ -0,0 +1,14 @@
header:
version: 11
includes:
- repo: subrepo
file: test.yml
repos:
this:
subrepo:
path: subrepo
externalrepo:
refspec: master