west/tests
Marc Herbert 0199418012 project.py: fix west diff --manifest to use `manifest-rev`
Fixes new `west diff --manifest` option added by commit
0d5ee4eb08 ("app: project: Allow to diff against manifest revision")

Do not pass `project.revision` to `git diff` because `project.revision`
is unresolved user input and does not always resolve to a commit. For
instance, `project.revision` can be the name of a remote branch like
`v3.7-branch` that does not exist locally; then `git diff` fails. Or
even worse: there could be a local branch of the same name which points
to a totally different commit.

This bug was found when discussing issue #747, see 7th comment there for
a longer description of what `manifest-rev` is and how it works.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-10-09 12:34:45 -07:00
..
manifests tests: Add manifest test for submodules 2024-09-24 10:55:24 -07:00
conftest.py tests: Add tests for manifest --freeze and submodules 2024-09-24 10:55:24 -07:00
test_alias.py tests: Add alias testing 2024-09-06 07:12:34 -07:00
test_commands.py test_commands.py: improve coverage 2022-08-31 16:06:42 -07:00
test_config.py tests: move config_tmpdir fixture to conftest 2023-05-10 10:11:46 -07:00
test_help.py tests: test_help: python implementation detail tweak 2022-03-18 10:59:14 -07:00
test_main.py tests: ensure we're run via tox 2021-02-10 09:06:29 -08:00
test_manifest.py tests: Add manifest test for submodules 2024-09-24 10:55:24 -07:00
test_project.py project.py: fix west diff --manifest to use `manifest-rev` 2024-10-09 12:34:45 -07:00