History log of /external/autotest/server/hosts/teststation_host.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
701fde8fcace5c224a3e614c5e1b8b691346fdd4 12-Jan-2017 Simran Basi <sbasi@google.com> Rework adb_host/teststation_host closing.

The process of closing a host calls stop_loggers AFTER the ssh
connection has been disconnected. But for adb_host it grabs the
logs from the remote test station which opens a new ssh connection.

This change ensures that last SSH connection is properly cleaned up.

Lastly, removes the teststation optimization of not calling close, if
its already closed as it will be reopened by each DUT that is part of
the testbed.

BUG=chromium:679024
TEST=local testbed dummy test run and verified no stray ssh connections
remained afterwards.

Change-Id: Ia584813e49061f7f08300965027ac97fc872b44b
Reviewed-on: https://chromium-review.googlesource.com/427361
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/server/hosts/teststation_host.py
9190a1326eab9dd70406d0fff3988466f4c888b2 02-Nov-2016 Benny Peake <bpeake@google.com> Refactored android_ACTs into modular pieces

android_ACTs logic has been mostly pulled out into
a modular classes inside acts_lib. This new code allows
for acts to be installed through a variety of ways
and run in individual containers with varying options.

BUG=b:31935254
BUG=b:31936544
TEST=Ran test against phone to check that it passed.

Change-Id: I78d1eb8e81b3484f5e3ea2fd12150a2d43a74198
Reviewed-on: https://chromium-review.googlesource.com/407067
Commit-Ready: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
/external/autotest/server/hosts/teststation_host.py
fc20d3dedb9d191cfbbe05057365b06fb1050e4a 07-Jul-2016 Dan Shi <dshi@google.com> [autotest] Force teststation command to abort when the ssh command is timed out

Add `-t` option to the teststation_run command so the command running on remote
host can be forced to abort when the ssh command is timed out.

BUG=b:29995788
TEST=local test
import common
from autotest_lib.server import hosts
host = hosts.create_host('100.96.51.111', adb_serial=serial)
host.fastboot_run('reboot', timeout=30)
confirm the teststation has no fastboot command running after the script is
finished.

Change-Id: Ic509f67ff751cff0c275df1c6a4d9e478e241fe4
Reviewed-on: https://chromium-review.googlesource.com/358950
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/teststation_host.py
4aff0a87d4483f151b82dd8c37081083338871b7 10-May-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] Update teststation_host tmp dir to be /var/tmp

The teststation will be running on the labstation which has a small /tmp
(2GB) while the /var/tmp is much bigger (100GB), use that instead.

BUG=b:28564526
TEST=None

Change-Id: I78b938c6f0693e29770a60e8f8187be1298700ce
Reviewed-on: https://chromium-review.googlesource.com/344002
Commit-Ready: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/teststation_host.py
2a94607f30ae1fc85e734d82ef45ceab7db1b4d0 14-Jan-2016 Simran Basi <sbasi@google.com> autotest: revert teststation_host user checks.

Reverting changes:
https://chromium-review.googlesource.com/#/c/320492/5/server/hosts/teststation_host.py

Turns out that running fastboot on an ubuntu machine does not
require sudo, but running on Chrome OS does.

For now the only supported Chrome OS device is MobLab.

BUG=None
TEST=None

Change-Id: Ia41630c8979c94bfab1a43bc38d63ace03451e40
Reviewed-on: https://chromium-review.googlesource.com/322250
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/server/hosts/teststation_host.py
7e52c625ecf8d55aa127b67ca00fbf3d5b270bc5 06-Jan-2016 Simran Basi <sbasi@google.com> autotest: Ensure fastboot commands use sudo when required.

Previously we only prepended sudo when running on MobLab.
This is technically incorrect as some ACTS test stations
will be using user adb and will need to use sudo when
running provisioning.

Also prepends sudo to the Brillo provision command.

BUG=None.
TEST=Quick test on moblab.

Change-Id: I1487f28929b1a9641834a262db40d055aee39420
Reviewed-on: https://chromium-review.googlesource.com/320492
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/teststation_host.py
32e8f27381d10efff563317d634438cc0d2c49a0 06-Jan-2016 Simran Basi <sbasi@google.com> teststation_host: Catch all possible run() exceptions.

When teststation_host is using a localhost host, run
raises a slightly different Exception when it fails.
This change catches that except as well when checking
if running on a MobLab.

BUG=None
TEST=None

Change-Id: I3a66b6b6e9f4d6c3a59a6626a831ddcf0b2643c9
Reviewed-on: https://chromium-review.googlesource.com/320398
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
/external/autotest/server/hosts/teststation_host.py
3994260114ebb551ed259e39a29efd4aba871cd2 17-Dec-2015 Roshan Pius <rpius@google.com> adb_host: Invoke |close| on the associated teststation

When |AbdHost.close()| is invoked, it should also close the associated
teststation object. This ensures that all RPC servers, etc created on
the teststation is cleaned up as well.

BUG=chromium:570802
TEST=`test_that --autotest_dir=../third_party/autotest/files
chromeos3-row1-rack1-host3.cros
network_WiFi_ChaosConnectDisconnect.open`

Change-Id: I7f50a69170669f167bdf7ce7ece34d6988d601d3
Reviewed-on: https://chromium-review.googlesource.com/319160
Commit-Ready: Roshan Pius <rpius@chromium.org>
Tested-by: Roshan Pius <rpius@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/teststation_host.py
85e864a0b6e00c2c2de0bbb698ff927822916a0e 30-Nov-2015 Kevin Cheng <kevcheng@chromium.org> [autotest] Add in teststation host class.

Add in the teststation host class to reduce the duplicated test station
init code spread out among ADBHost and TestBed.

BUG=chromium:548739
TEST=Verified locally on moblab with moblab/angler and
moblab/[beaglebone-dragon]

Change-Id: Id3d9733fe3bdcf88ac82fb5a73d1b1d2296a1610
Reviewed-on: https://chromium-review.googlesource.com/314825
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/teststation_host.py