[autotest] A tool that maps a suite to it's control files.

Currently, this mapping is achieved at runtime, by going
through all control files in search of a suite attribute
that matches the current suite's name. This is an expensive
process, and since the control files don't change after we
freeze them at build time, one that can be avoided with some
preprocessing. This tool will go through all control files
specified in the given root directory and build a suite
to control file map that dynamic_suite can consume at
run time.

BUG=chromium:252398
TEST=Ran the script both stand alone and through emerge
     autotest-all, checked the suite map it generated.

Change-Id: I77df32189039fc9d0f1aa6768a35ae4b361e01ae
Previous-Reviewed-on: https://gerrit.chromium.org/gerrit/61393
(cherry picked from commit 5cb8f91e6853de4ecc351a842eb8f1c1919094bb)
Reviewed-on: https://gerrit.chromium.org/gerrit/63914
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Prashanth Balasubramanian <beeps@chromium.org>
Tested-by: Prashanth Balasubramanian <beeps@chromium.org>
2 files changed