Skip to content

Commit

Permalink
tests: Add test cases for invalid west projects manifests
Browse files Browse the repository at this point in the history
Add tests for cases where projects are inside the .west directory.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt committed Oct 21, 2024
1 parent 5a23158 commit d57283e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be .west.

manifest:
projects:
- name: nope
url: ignore-me
path: .west
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_reldir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be .west after normalization.

manifest:
projects:
- name: nope
url: ignore-me
path: foo/../.west
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_relsubdir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be in .west normalized.

manifest:
projects:
- name: nope
url: ignore-me
path: foo/../.west/some/path
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_subdir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be in .west/.

manifest:
projects:
- name: nope
url: ignore-me
path: .west/some/path

0 comments on commit d57283e

Please sign in to comment.