Fix test failures in releasetools

new_path used before assignment, use `path` instead.

Bug: 280425458
Change-Id: I55086f92cf109af67032614cefde60e6478bb149
This commit is contained in:
Kelvin Zhang 2023-07-24 13:16:03 -07:00
parent 0ee11559f9
commit 43df0805c2

View file

@ -1429,7 +1429,7 @@ def ResolveAVBSigningPathArgs(split_args):
if os.path.exists(new_path):
return new_path
raise ExternalError(
"Failed to find {}".format(new_path))
"Failed to find {}".format(path))
if not split_args:
return split_args