[Autotest] Check Bluetooth naming format inside of bluetooth_IDCheck test.

A recent change appends some identifying numbers on the end of the
Bluetooth adapter alias.  E.g. "Chromebook_1234" instead of just
"Chromebook".

The bluetooth_IDCheck test already verified the format of the ID.
This change makes it also verify the new naming convention.

Also, add a common utils function to get the device_type string
from /etc/lsb_release.

TEST=ran on several devices
BUG=chromium:585965

Change-Id: Ia347b975f918aeb5a91a2f196ed64ca6930d38f9
Reviewed-on: https://chromium-review.googlesource.com/328061
Commit-Ready: Katherine Threlkeld <kathrelkeld@chromium.org>
Tested-by: Katherine Threlkeld <kathrelkeld@chromium.org>
Reviewed-by: Tien Chang <tienchang@chromium.org>
3 files changed