Skip to content

Commit

Permalink
tests: Add cases for diff/status argument passing
Browse files Browse the repository at this point in the history
Call west diff and status commands with arguments to be passed to git.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt committed Aug 27, 2024
1 parent 1e6600a commit e0f8c77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,13 @@ def test_diff(west_init_tmpdir):

cmd('diff')
cmd('diff --manifest')
cmd('diff --stat')

# Neither should it fail after fetching one or both projects

cmd('update net-tools')
cmd('diff')
cmd('diff --stat')

cmd('update Kconfiglib')

Expand All @@ -351,11 +353,13 @@ def test_status(west_init_tmpdir):
# Status with no projects cloned shouldn't fail

cmd('status')
cmd('status --short --branch')

# Neither should it fail after fetching one or both projects

cmd('update net-tools')
cmd('status')
cmd('status --short --branch')

cmd('update Kconfiglib')

Expand Down

0 comments on commit e0f8c77

Please sign in to comment.