Touch FW test: fix handling of no-variation tests

Some tests have no variations, so the variation object is None, which
can result in some crashes since the script was assuming that they were
strings.  This patch checks for None before trying to determine what it
should do with the function generator to prevent crashes.

BUG=none
TEST=manually tested

Change-Id: Ieb507b2fca6b478e257ac33cfad1f36cbc94c3d3
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/221431
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
2 files changed