Fix power suites' NAME attribute
Test metadata enumeration depends on the NAME attribute to name tests /
suites. A handful of the suites were using a global variable setting for
this purpose instead. Fix them.
BUG=chromium:1028257
TEST=None
Change-Id: Iad949456ca7b4555e17713b3d887873ec724d79e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1937972
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Xinan Lin <linxinan@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
diff --git a/test_suites/control.power_daily b/test_suites/control.power_daily
index 17743f9..6b82fee 100644
--- a/test_suites/control.power_daily
+++ b/test_suites/control.power_daily
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
-NAME = "Power Daily Test Suite"
+NAME = "power_daily"
TIME = "SHORT"
TEST_CATEGORY = "General"
TEST_CLASS = "suite"
@@ -37,7 +37,7 @@
args_dict['add_experimental'] = True
args_dict['bug_template'] = _BUG_TEMPLATE
-args_dict['name'] = 'power_daily'
+args_dict['name'] = NAME
args_dict['job'] = job
dynamic_suite.reimage_and_run(**args_dict)