Fix faft suites' NAME attribute
Test metadata enumeration uses the NAME field to detect a test / suite
name. A handful of tests were relying on a global variable update for
this instead. Fix them.
BUG=chromium:1028257
TEST=None
Change-Id: If486b621f2aa76e1efd5705a086e1c47e56215bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1937971
Reviewed-by: Kevin Shelton <[email protected]>
Reviewed-by: Xinan Lin <[email protected]>
Commit-Queue: Prathmesh Prabhu <[email protected]>
Tested-by: Prathmesh Prabhu <[email protected]>
diff --git a/test_suites/control.faft_framework b/test_suites/control.faft_framework
index 0116a93..3993969 100644
--- a/test_suites/control.faft_framework
+++ b/test_suites/control.faft_framework
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = "gredelston, kmshelton, dgoyette, waihong"
-NAME = "faft_infra"
+NAME = "faft_framework"
PURPOSE = "Suite to verify that the FAFT framework is intact"
TIME = "SHORT"
TEST_CATEGORY = "General"
@@ -38,7 +38,7 @@
}
args_dict['file_bugs'] = False
-args_dict['name'] = 'faft_setup'
+args_dict['name'] = NAME
args_dict['job'] = job
args_dict['add_experimental'] = True
args_dict['bug_template'] = _BUG_TEMPLATE
diff --git a/test_suites/control.faft_lab b/test_suites/control.faft_lab
index 6715073..e1bfad6 100644
--- a/test_suites/control.faft_lab
+++ b/test_suites/control.faft_lab
@@ -3,7 +3,7 @@
# found in the LICENSE file.
AUTHOR = "mohsinally"
-NAME = "FAFT Lab Suite"
+NAME = "faft_lab"
TIME = "MEDIUM"
TEST_CATEGORY = "General"
TEST_CLASS = "suite"
@@ -41,7 +41,7 @@
args_dict['file_bugs'] = True
args_dict['job'] = job
args_dict['add_experimental'] = True
-args_dict['name'] = 'faft_lab'
+args_dict['name'] = NAME
args_dict['bug_template'] = _BUG_TEMPLATE
dynamic_suite.reimage_and_run(**args_dict)