hardware_TrimIntegrity: Report trim not supported as a failure / refactor

Now that we enable trim in eMMC part, the test should be failed when
IOCTL reports that trim command is not supported.

Also reorder command a bit to calculate hash for zero/one stream before
measure the read speed.

Fix a bug in calculating hash for one stream.

BUG=chromium:329736
TEST=Tested in falco. Test passed.

Change-Id: I622794168f5c61a3fd7929c20303226c3b467723
Reviewed-on: https://chromium-review.googlesource.com/187000
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
1 file changed