servo_postint: Only append the version string if the other end is DUT

We append the version string during the postinst phase, in order to
know the servo type like 'servo_v4_with_servo_micro' (servo v4 with
a servo-micro connected to DUT). If the connected is a base, should
not append the version string, avoiding a string like
'servo_v4_with_servo_micro_with_servo_micro'.

BUG=b:66211919
TEST=Started servod, with servo v4 with one servo-micro to DUT and
one servo-micro to the base. Ran provision_FirmwareUpdate which reads
the servo version string to know the servo type.

Change-Id: Iff3d61132793c1cba0effe103e8f99ba0a6a115a
Reviewed-on: https://chromium-review.googlesource.com/740084
Commit-Ready: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
1 file changed