The test starts with the HEAD pointing to the wrong place, so that the created files appear to be deleted. Fix this by resetting the tree before tests start. Add a check that the tree is clean.
Update pygit2 so that the enums are available. Signed-off-by: Simon Glass <s...@chromium.org> --- tools/patman/func_test.py | 9 ++++++++- tools/patman/requirements.txt | 2 +- tools/u_boot_pylib/gitutil.py | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) Applied to sjg/master, thanks!