[autotest] Allows set higher_is_better to None

Currently higher_is_better doesn't allow null in
tko_iteration_perf_value. Ideally we should alter the table
to allow it. But that would take very long down time (over 17 hours)
This cl is a workaround which makes the parser won't
insert higher_is_better if it is None (and the db bit will
default to True). Currently no one/no code is really using
this bit, so this seems fine. The piece that people do care
about, the value that is passed to perf uploader, can now
be set to None.

TEST=Run tko/parse with a result directory that
contains a perf_meansurements file. Change the higher_is_better
in the file to null/true/false and observe the parser logs.
BUG=None

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