History log of /external/autotest/server/hosts/cros_label.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
eac4431f3b76899ccede19d71c8efe54c8e99b98 30-Aug-2016 Joseph Hwang <josephsih@chromium.org> cros_label: support 'chameleon:bt_hid' label in ChameleonPeripheralsLabel

This patch supports a new 'chameleon:bt_hid' label in
ChameleonPeripheralsLabel. The label is applied when
it is detected that a bluetooth classic HID device is
plugged into the Chameleon board.

BUG=chromium:610238
TEST=Use logging.info to print out host.get_labels() in an autotest
on a DUT with chameleon board. It should print out something like
['bluetooth', 'chameleon', 'chameleon:bt_hid', ...]

Change-Id: I7a462912a2375bd89890cfd9ee08ca52cbfe9dee
Reviewed-on: https://chromium-review.googlesource.com/377849
Commit-Ready: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
/external/autotest/server/hosts/cros_label.py
eee38e0baff993cf20229ea825b514e7f806cb79 31-Aug-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Add decorator for labels to stay forever.

BUG=chromium:621640
TEST=locally verified label still gets checked and if it already exists,
will return True.

Change-Id: I09d73ea06db8da170e03ec919f2db2bb80d7ee43
Reviewed-on: https://chromium-review.googlesource.com/378555
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
Commit-Queue: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
a8455305ddb4ffa4daef28db05f39b3224e13dd3 31-Aug-2016 Kevin Cheng <kevcheng@chromium.org> Revert "[autotest] Remove CrosLabel's board label."

This reverts commit ff19bb71af18fbf5bd93fb36426521d0fef6920b.

Change-Id: I801767c71bd42b189218a1fad269a5c2c6a4b313
Reviewed-on: https://chromium-review.googlesource.com/379118
Commit-Queue: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/cros_label.py
ff19bb71af18fbf5bd93fb36426521d0fef6920b 24-Aug-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Remove CrosLabel's board label.

BUG=chromium:640505
TEST=None

Change-Id: I761946d5aa22cbb49bc5d8d8b1e68d2de18c9425
Reviewed-on: https://chromium-review.googlesource.com/374979
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@google.com>
/external/autotest/server/hosts/cros_label.py
b10ba5f8b37741b47f9bd8b871f1a795aeee588b 24-Aug-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Fix cros board label to return right label.

BoardLabel was return the first label that had 'board' in it, there are
some labels that also start with 'board' like 'board_freq_mem'. Making
sure the BoardLabel returns the correct 'board' label now.

BUG=chromium:640505
TEST=None

Change-Id: Ia7f7d3ca59a5927e1f7beb666abaed87e466bfba
Reviewed-on: https://chromium-review.googlesource.com/374761
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
Commit-Queue: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
bbe5cf1f0414dadc167763eef09139995f5cc634 09-Jun-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Update servo label exists method.

The current label detection mechanism just tries to ping the transformed
dut hostname into a servo host hostname. The servo host hostname can
also be gathered from the host attributes as well so try that first.

BUG=chromium:616776
TEST=locally on moblab

Change-Id: I50596f0f3e0b3d7344bc12f8f38bfbe7fe8bf304
Reviewed-on: https://chromium-review.googlesource.com/351014
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/cros_label.py
ab94eb4c9d778bec4f0f2753332a4d1f3a59570e 06-Jul-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Update cros board label to not update itself.

Only generate the board label if the host does not have the board label,
otherwise just the existing board label.

BUG=chromium:624207
TEST=locally using contrib/print_host_labels.py
CQ-DEPEND=CL:349990

Change-Id: Ida6fde3fe043118ed76d895477888a7b66161745
Reviewed-on: https://chromium-review.googlesource.com/358501
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
c6e5d620e645063b1ecf81c09c7e2c6690cfa9fe 17-Jun-2016 Rohit Makasana <rohitbm@chromium.org> Label ARC device with cheets label in the lab.

BUG=chromium:620847
TEST=files/contrib$ ./print_host_labels.py <IP>

Change-Id: I5cee6f05473666fa1c1e6bd03a0ae5d1a0a4d397
Reviewed-on: https://chromium-review.googlesource.com/353393
Commit-Ready: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
5a153501a7c82ff8a16f607ed14a03aec2d094b1 14-Jun-2016 Rohit Makasana <rohitbm@chromium.org> Add label detector for CTS abi

TEST=autotest/files/contrib$ ./print_host_labels.py <IP>
BUG=chromium:618509

Change-Id: I0b9a4fb984f2d18aa0a9979e0e9ff6597b99ee5b
Reviewed-on: https://chromium-review.googlesource.com/352281
Commit-Ready: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
17e2f0052a2b4fa8c472d93f1ef79e605f05f250 04-May-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Fix up ec label.

There was a rogue self.run call that needed to be changed to be a
host.run call.

BUG=None
TEST=None

Change-Id: Idfb2069f7e88d4c862cdac597df3512e88158fcb
Reviewed-on: https://chromium-review.googlesource.com/342368
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
d9dfa585eb054fb726cd7db409d48996aeebf7c0 04-May-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Update Servo label exists method

Previously ServoLabel checked if the _servo_host object was not None.
That wasn't always true since during the reset job, the _servo_host
object does not get created since 'try_lab_servo' isn't true when
creating the host. This uses the method that servo_host module uses
to check for prior to creating the _servo_host object.

BUG=chromium:609143
TEST=locally with chromeos1-row5-rack6-host1

Change-Id: Ic4b65a28351f01d129e37b84ac4a9f097171fa0b
Reviewed-on: https://chromium-review.googlesource.com/342153
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/cros_label.py
9fe3e4e9796096a7a4686f44f4a79f497b724dc4 04-Apr-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Remove TouchLabel from CrosLabel.

The label is being replaced by hwid as the source of truth. This
is done primarily because the TouchLabel detection method takes too
long (~20 sec) and is an inhibitor for adding the label auto-update
as a verifier.

BUG=chromium:599928
TEST=locally tested on gnawty, touchlabel is still being detected
via hwid.
CQ-DEPEND=CL:331329

Change-Id: I858bf89246e9f7c08675a24d2776db3ff1339bba
Reviewed-on: https://chromium-review.googlesource.com/336899
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Katherine Threlkeld <kathrelkeld@chromium.org>
/external/autotest/server/hosts/cros_label.py
80ad573f36cd7677c0413353135deed99127f728 01-Apr-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Add in hwid labels for cros_host.

Added in a lib function for hwid_lib to return all possible hwid labels.
Also added in the hwid_label detector function.

BUG=chromium:571087
TEST=locally tested on moblab and guado_moblab.
CQ-DEPEND=CL:328731
CQ-DEPEND=CL:337355
CQ-DEPEND=CL:338105

Change-Id: I3fd471b4ab8c90e98f93ba9e36f400648fcb7b74
Reviewed-on: https://chromium-review.googlesource.com/331329
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py
856f8a36f03ade04dbb723492d151789d424b249 01-Apr-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Fix up bug in cros Accels label.

BUG=None
TEST=test that label function works.

Change-Id: I1ab1dc848988287349420b51056596af1d11b493
Reviewed-on: https://chromium-review.googlesource.com/336731
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
/external/autotest/server/hosts/cros_label.py
a2619dcb72545c87792e53530866ad5aa0f4734e 28-Mar-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Move Cros labels to new label classes.

Also add in the os label as well (os:cros).

BUG=chromium:571085
TEST=locally tested that cros labels do appear (and not appear) when
expected on a guado/gnawty.
CQ-DEPEND=CL:319483

Change-Id: I3d72dcd96541bc67545b80e60597a0c6f6738517
Reviewed-on: https://chromium-review.googlesource.com/328731
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/cros_label.py