[autotest] Don't add experimental prefix if test name already starts with it.

'experimental' prefix is appended to the test name in Suite.schedule().
test_that calls Suite.schedule() multiple times on the same Suite
instance when --iterations is used. This caused the prefix be added
multiple times.

This cl makes Suite.schedule() check whether a test has already started
with 'experimental'. If yes, then do not append it to the test name again.

BUG=chromium:364593
TEST=run dummy suite using run_suite.
test_that --board=lumpy --iterations=3 HOST dummy_Pass
connfirmed experimental prefix was appended only once.
unittests

Change-Id: I4618f60b6ad9010f8942e03fc9c887edd0854b0a
Reviewed-on: https://chromium-review.googlesource.com/197538
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
1 file changed