[autotest] Teach run_suite.py to automatically launch new style suite

Teach run_suite.py to automatically launch the new style suite from the old
command argument options. The old cmd will be converted to the cmd used by the
new suite control file within run_suite. Example:
old cmd: run_suite.py --board=xx --build=xx --suite_name=dummy --use_suite_attr
becomes: run_suite.py --board=xx --build=xx --suite_name=suite_attr_wrapper
                      --suite_args="{'attr_filter':'suite:dummy'}"

BUG=chromium:495738
TEST=Test on moblab with the normal run_suite.py cmd with suite_name=dummy. It
automatically launches suite_attr_wrapper and passes the dummy suite.

Change-Id: I8bff42377e242a233f48da472865b4dc158b7dd1
Reviewed-on: https://chromium-review.googlesource.com/274831
Reviewed-by: Dan Shi <dshi@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
Trybot-Ready: Shuqian Zhao <shuqianz@chromium.org>
1 file changed