From 43df0805c2aab5cf232aa6ee9855e792b68e93c7 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Mon, 24 Jul 2023 13:16:03 -0700 Subject: [PATCH] Fix test failures in releasetools new_path used before assignment, use `path` instead. Bug: 280425458 Change-Id: I55086f92cf109af67032614cefde60e6478bb149 --- tools/releasetools/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 1f021e0aaf..732b5e92d3 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -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