repos: add tests for common errors
This patch adds tests for common errors when working with patches. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
committed by
Jan Kiszka
parent
5e4da5020b
commit
6e3a8d9118
13
tests/test_patch/test-invalid.yml
Normal file
13
tests/test_patch/test-invalid.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
header:
|
||||
version: 8
|
||||
|
||||
repos:
|
||||
this:
|
||||
|
||||
kas:
|
||||
url: https://github.com/siemens/kas.git
|
||||
refspec: 907816a5c4094b59a36aec12226e71c461c05b77
|
||||
patches:
|
||||
plain:
|
||||
repo: this
|
||||
path: patches/kas/001-non-existent.patch
|
11
tests/test_patch/test-invalid2.yml
Normal file
11
tests/test_patch/test-invalid2.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
header:
|
||||
version: 8
|
||||
|
||||
repos:
|
||||
kas:
|
||||
url: https://github.com/siemens/kas.git
|
||||
refspec: 907816a5c4094b59a36aec12226e71c461c05b77
|
||||
patches:
|
||||
plain:
|
||||
repo: non-existent
|
||||
path: patches/kas/001.patch
|
13
tests/test_patch/test-invalid3.yml
Normal file
13
tests/test_patch/test-invalid3.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
header:
|
||||
version: 8
|
||||
|
||||
repos:
|
||||
this:
|
||||
|
||||
kas:
|
||||
url: https://github.com/ilbers/isar.git
|
||||
refspec: 47aaeedecd0ea6f754da36be1d10717b04eb8275
|
||||
patches:
|
||||
plain:
|
||||
repo: this
|
||||
path: patches/kas/001.patch
|
Reference in New Issue
Block a user