crosperf: in cwp mode, first check whether iterations are the same

In cwp mode, we ask user to set same iterations for different benchmark
runs, but if user did not do so, he will spend too long running all
benchmarks and then get an error message in the end.

This patch checks whether iterations in experiment file are the same at
the time we construct benchmark.

Also the patch fixed a small test case mismatch in weight check so that
all unit tests can pass.

Fixed format issues from pylint.

BUG=chromium:929390
TEST=All unit tests passed.

Change-Id: I0eae51205e8c0fa80131c5b79c4773e88c5b0915
Reviewed-on: https://chromium-review.googlesource.com/1459854
Commit-Ready: Zhizhou Yang <zhizhouy@google.com>
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
2 files changed