]> git.dujemihanovic.xyz Git - u-boot.git/commit
patman: fix class TestFunctional
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Apr 2023 18:07:29 +0000 (20:07 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 17:49:00 +0000 (11:49 -0600)
commitc25be4f3ace634f132e92ae651ed9fbd2aa44171
tree855bf11b331b708ad794d8308e94aa3214f50e01
parentad827e15b22ad370b5e548c12f58efcedf657740
patman: fix class TestFunctional

Variable orig_dir cannot be used in the finally block if it has not be
assigned outside of the try block.

tools/patman/func_test.py:523:21:
E0601: Using variable 'orig_dir' before assignment
(used-before-assignment)

tools/patman/func_test.py:691:21:
E0601: Using variable 'orig_dir' before assignment
(used-before-assignment)

Fixes: fd70986a62af ("patman: Add a test that uses gitpython")
Fixes: be051c0c7741 ("patman: Detect missing upstream in CountCommitsToBranch")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py