History log of /external/autotest/client/bin/site_utils.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
95329e91203844d40130efedcc8aa9a74eebe71f 02-Feb-2017 Dan Shi <dshi@google.com> [autotest] Add 2 utilities related to TKO database

cleanup_tko_db.py:
Call stored procedure to remove tests older than 180 days.

check_slave_db_delay.py:
Check the slave database of AFE and TKO's delay time after master.
Report the delay to metrics.

BUG=chromium:683965,chromium:682489
TEST=local run the script.

Change-Id: If049ea5ce1ef2ed55cbb9a94f4523a466987ac59
Reviewed-on: https://chromium-review.googlesource.com/436284
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/client/bin/site_utils.py
758ebd0b29876e9d2cf6722d2f362a47a51a3dcd 01-Feb-2017 Dan Shi <dshi@google.com> Do not force to install latest package in container.

For server side test using SSP, installing packages requires to run
apt-get update and other commands that take long time to finish and introduce
unnecessary load on the drone. All these slow down the server side test by
minutes.
This change allows install_packages call to skip installing a package if it's
already installed and user does not force the latest version of the package.

BUG=chromium:660392
TEST=lxc_functional_test.py

Change-Id: I4a8113a06fcec8062807899f7d25dfa4427746a8
Reviewed-on: https://chromium-review.googlesource.com/435463
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/client/bin/site_utils.py
8a25e3fbab199b040beb5e44876aaf69a8510b3d 11-Nov-2016 Satyajit Sahu <satyajit.sahu@amd.com> [autotest] Add AMD support in get_cpu_soc_family

Add new cpu soc family in "amd" in get_cpu_soc_family.

BUG=None
TEST=Autotest on AMD development board

Change-Id: I45c2dacfe127fdb95b7846c62ace113fe7fd258c
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Reviewed-on: https://chromium-review.googlesource.com/401087
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
e8794f75276492c87e3ad4bcae4d6b26ac368711 29-Nov-2016 Nicolas Boichat <drinkcat@google.com> site_utils: get_gpu_family: rogue: Test for debugfs path

Driver name may change across DDK updates, let's test for the
existence of /sys/kernel/debug/pvr instead, which should be
present with all DDK versions.

BUG=chrome-os-partner:60333
TEST=test_that graphics_Idle

Change-Id: I2af4d214137e591a26ddab911e78d5373568f568
Reviewed-on: https://chromium-review.googlesource.com/414713
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
/external/autotest/client/bin/site_utils.py
2cfc851f8b6ba6e899418774be8d761b37efe700 23-Nov-2016 Chung-yih Wang <cywang@google.com> site_utils: Log processes details

Need more processes details for debugging.

BUG=chromium:667983
TEST=none

Change-Id: I38f0a8851a94efe78c35e05d00f1a7b67cc54423
Signed-off-by: Chung-yih Wang <cywang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/413804
Reviewed-by: Hsu-Cheng Tsai <hctsai@chromium.org>
/external/autotest/client/bin/site_utils.py
d00647a391faef2fc7c5871efef91dffd139ff71 20-Sep-2016 Wenhao Li <wenhao.w.li@intel.com> Add helper functions for kernel partition

BUG=chrome-os-partner:57591
Test=Use those two functions in autotest

Change-Id: Ie657b75355ca49e96b1f7c0cdc7804671d7a7930
Signed-off-by: Wenhao Li <wenhao.w.li@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/387147
Commit-Ready: Benson Leung <bleung@google.com>
Tested-by: Wenhao W Li <wenhao.w.li@intel.com>
Reviewed-by: Wenhao W Li <wenhao.w.li@intel.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
/external/autotest/client/bin/site_utils.py
1a3686dc302fcf98aaf101f758bd510bc0d21935 03-Sep-2016 Ilja H. Friedel <ihf@chromium.org> site_utils: handle mali on kevin.

BUG=chrome-os-partner:56529
TEST=test_that <kevin_ip> graphics_dEQP.gles2.info

Change-Id: Ib743abf1116c610221ebe90da10253bc6c3dc2a0
Reviewed-on: https://chromium-review.googlesource.com/380831
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
/external/autotest/client/bin/site_utils.py
d5972948ef1e4c173eb3e2a37e47832d1a06f468 20-Jul-2016 Jonathan Dixon <joth@google.com> autotest: Add Rialto to devices without a monitor

BUG=None
TEST=pylint

Change-Id: I76e414260dba5c9146476c436d5061c0a090c225
Reviewed-on: https://chromium-review.googlesource.com/361813
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
fdf079cdc1826a0b3f0c25b4aa8cbe5f7cd7e7af 11-Jul-2016 Grant Grundler <grundler@google.com> autotest: gale only has 512MB RAM

get_mem_total() applies to _all_ devices. gale only has 512MB RAM.
This check needs to get replaced with a "per device class" lookup.

BUG=None
TEST=test_that 172.27.217.218 network_EthernetStressPlug \
--args num_iterations=10,interface=wan0

Change-Id: I9ba3f6d3990bee9b0e5afd427cdcac5a7217e0fe
Reviewed-on: https://chromium-review.googlesource.com/359631
Commit-Ready: Grant Grundler <grundler@chromium.org>
Tested-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: John Carey <ranix@google.com>
Reviewed-by: Grant Grundler <grundler@chromium.org>
/external/autotest/client/bin/site_utils.py
f9f7469309a08687f106a4a101a22e5077a53be4 06-Jun-2016 Kalin Stoyanov <kalin@chromium.org> Enable arc_mode for chameleon tests

BUG=chromium:616635
TEST=Tested for cyan-cheets

Change-Id: I8f1235de5911e6f70ab5e9b5ef4b3a6d5124c0d6
Reviewed-on: https://chromium-review.googlesource.com/350090
Commit-Ready: Kalin Stoyanov <kalin@chromium.org>
Tested-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
d1881ad74b732affb1575d04db5ab01af14dabf0 26-May-2016 Hidehiko Abe <hidehiko@chromium.org> Move poll_for_condition to common_lib.

Some server test starts to use it, and there is no reason
to keep it in client.bin.site_utils from implementation
perspective.

This CL moves it to client.common_lib.site_utils, thus
test code can access to it via autotest_lib.server.utils,
instead of client.bin.utils.

Note that it is still accessible from client.bin.utils, so
no client side change is needed at the moment.

In future, probably it would be better to integrate the
function to client.common_lib.base_utils.wait_for_value() and
wait_for_value_changed(), but it is not the goal of this CL.

BUG=None
TEST=Ran locally.

Change-Id: Ic15df9d87c96ae459267cd157bbbb408abca6bfd
Reviewed-on: https://chromium-review.googlesource.com/347562
Commit-Ready: Hidehiko Abe <hidehiko@chromium.org>
Tested-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/client/bin/site_utils.py
e7c97f899c73c271abcd7eafa73120864e5da604 25-Mar-2016 Ilja H. Friedel <ihf@chromium.org> graphics_dEQP: add generic way to skip tests.

Use wflinfo to query gles version before running tests.
Refactor graphics_GLAPICheck.

BUG=None.
TEST=Ran graphics_dEQP.gles{2|3|31}.info on alex, daisy and lars.
Ran graphics_GLAPICheck on alex.

Change-Id: Ifaf1e20240152338439c050a4481d2933def9422
Reviewed-on: https://chromium-review.googlesource.com/334872
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
c73f316cc4663aacd2422397072cb3562e95d50a 15-Mar-2016 Ilja H. Friedel <ihf@chromium.org> site_utils: detect VM for board name.

Also pylint cleanup.

BUG=chromium:594569
TEST=Ran locally on lars.

Change-Id: I2368220c1a67d139af083b3d167d76f45e66e8eb
Reviewed-on: https://chromium-review.googlesource.com/332682
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
5f6574479479892e960f8a4332f6fae375cb66bf 08-Mar-2016 Ilja H. Friedel <ihf@chromium.org> autotest: refactor ARM/mali utils.

1) Distinguish between different mali -> mali-t604.
2) Remove temperature TODO, it is long fixed.

BUG=None.
TEST=test_that <daisy> graphics_dEQP.gles2.performance graphics_GLBench.bvt-cq graphics_Idle

Change-Id: I47568cb3369ab213592855430a647fe6366374c1
Reviewed-on: https://chromium-review.googlesource.com/331334
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
4e7934a80931e04687594beaef0d2d8d7bf2c2ae 20-Jan-2016 Ilja H. Friedel <ihf@chromium.org> graphics_PerfControl: ignore race.

After a CPU/scaling_governor is found it can disappear when the
CPU is disabled. This started happening on Tegra after change
https://chromium-review.googlesource.com/#/c/318164/2
This change causes more CPUs to become active during login and
then disappear quickly enough to cause test failures.

BUG=None.
TEST=Ran test on nyan_big.

Change-Id: I9a9e357fad265e3730c8e3eaa72955c7322c14ae
Reviewed-on: https://chromium-review.googlesource.com/322624
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/bin/site_utils.py
3f8256f695331364fcb0e18ec5af986e3e340699 20-Jan-2016 Ilja H. Friedel <ihf@chromium.org> Update list of boards without a monitor.

BUG=None.
TEST=pylint

Change-Id: Ifeda332d65b8c16bce54b923d3583e3acedda977
Reviewed-on: https://chromium-review.googlesource.com/322458
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/bin/site_utils.py
a96a35853aed9ff5f573c54fa7b5a21f86b21279 18-Nov-2015 Mike Mason <michael.w.mason@intel.com> site_utils: Use up-to-date Intel GPU PCI ID dictionary

This patch separates the Intel GPU PCI ID dictionary
into it's own JSON file and provides a script to update
that file with the latest IDs from upstream Mesa.

Historically, missing IDs are discovered when a test
fails on a new device. The update_intel_pci_ids script
should be run periodically to proactively keep the
list up-to-date, avoiding discovery by failure.

The patch includes a JSON file containing PCI IDs
extracted from upstream Mesa at the time of submission.
Note that the list contains some IDs that Chrome OS
will never care about, but there's no harm in
including them.

BUG=None
TEST=./update_intel_pci_ids
TEST=test_that <ip_address> graphics_Idle
TEST=test_that <ip_address> graphics_dEQP.gles3.info

Change-Id: Icff10a049433887d40ca210206429da3545f0713
Signed-off-by: Mike Mason <michael.w.mason@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/313005
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
04e9f9aaed9bddd6695962becf33d927e949bad2 16-Nov-2015 Shirish S <shirish.s@intel.com> bin/site_utils.py: Add PCI ID for SKL-U (Kunimitsu)

This patch adds the PCI ID for Kunimitsu board,
which was missing and causes failures while running

BUG=chrome-os-partner:47724
TEST=execute graphics_dEQP.gles2.functional.hasty.0
TEST=notice that test does not fail with the
TEST="Unhandled KeyError: 6406" signature

Change-Id: Ib587d6c6fa01d9f6571e33b9b429af16e1fd34e6
Signed-off-by: Shirish S <shirish.s@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/312822
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
effa5c0371ad69ec13b4cc29c7773542918b7fe0 24-Sep-2015 Ilja H. Friedel <ihf@chromium.org> bin/site_utils.py: fix logging.warning

which was missing a temperature, a regular expression and many
small pylint complaints.

BUG=None.
TEST=pylint.

Change-Id: I9337333a287cae75bfd52c463ae7480d2b856128
Reviewed-on: https://chromium-review.googlesource.com/302124
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/bin/site_utils.py
e8a3ba59db236057ec8f6daf41596eebd41b03da 16-Sep-2015 Rohit Makasana <rohitbm@chromium.org> Re-using existing file downloading utils

Recently Edward from Intel refactored all tests to use the same download code.
Hence it makes sense to reuse the same code and delete the download api from
site_utils.

TEST=ran locally
BUG=chromium:499434

Change-Id: Ie4b771f41bdb82edcd235cc99acfb2cd91719ded
Reviewed-on: https://chromium-review.googlesource.com/299904
Commit-Ready: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Reviewed-by: Katherine Threlkeld <kathrelkeld@chromium.org>
/external/autotest/client/bin/site_utils.py
ef25e9173f0e3b05d9343655e95b2a0e2d519491 18-Aug-2015 Ricky Liang <jcliang@chromium.org> site_utils: Ignore dummy thermal zones.

Ignore IO errors when reading temperature values from dummy thermal
zones.

BUG=chromium:517556
TEST=Manually verify with:
`test_that --board veyron_jaq --fast chromeos4-row4-rack6-host5.cros \
graphics_WebGLAquarium`

Change-Id: I3eadb899ae08e9b6e76bac22b0a9a0285b28b118
Signed-off-by: Ricky Liang <jcliang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/294044
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
471a8d1e0d6f33960b78f8c2ecb602fb6a565fc3 18-Aug-2015 Danny Chan <dchan@google.com> Re-enable consecutive boot test on chromebox.

- Firmware team run this test locally with km232 cable.
- Add faft_localrun parameters to separte lab run and local execution.
- fix cros_host.py get_board_type to handle missing DEVICETYPE
parameter in lsb-release file and update site_utils.py get_board_type
to do the same.

BUG=chromium:519078
TEST=Ran locally

Change-Id: I5bcc11d51c8b3314a8ea722e4fec0ed09800c416
Reviewed-on: https://chromium-review.googlesource.com/293949
Tested-by: danny chan <dchan@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: danny chan <dchan@chromium.org>
/external/autotest/client/bin/site_utils.py
8a4923c644c54f1cc26c739298e13e9b262e27f3 14-Aug-2015 Rohit Makasana <rohitbm@chromium.org> Disabling un-supported stress tests on non-chromebooks

Adding APIs to check device type.

BUG=chromium:519078
TEST=Ran locally

Change-Id: I0b0f94d71c758ac4a06b5a5eca23258f5d319855
Reviewed-on: https://chromium-review.googlesource.com/293602
Reviewed-by: danny chan <dchan@chromium.org>
Commit-Queue: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
dffb554fea50f12cfea11efe37b02d776300559b 12-Aug-2015 Ricky Liang <jcliang@chromium.org> site_utils: Get temperature from thermal_zones.

Search /sys/class/thermal/thermal_zones*/temp when looking for the
maximum temperature readings on the system.

BUG=chrome-os-partner:43302 chromium:517556
TEST=Run `test_that --board <board> --fast <remote> graphics_WebGLAquarium`
and verify the test passes without error.

Change-Id: Ia7c0d204091cae69a889f7215e3f204647b03aac
Signed-off-by: Ricky Liang <jcliang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/293050
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
696923bec6dcca1123b4ab504402948ffb85da62 12-Aug-2015 Rohit Makasana <rohitbm@chromium.org> Revert "site_utils: Get temperature from thermal_zones."

This CL broke all performance tests on almost all devices test hence reverting.

This reverts commit fc9cb18c0884692808beb00be9c45e88f60c7c05.

Change-Id: I974853ffedc56e988947aae61d0d42479a3ad626
Reviewed-on: https://chromium-review.googlesource.com/292940
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
fc9cb18c0884692808beb00be9c45e88f60c7c05 28-Jul-2015 Ricky Liang <jcliang@chromium.org> site_utils: Get temperature from thermal_zones.

Search /sys/class/thermal/thermal_zones*/temp when looking for the
maximum temperature readings on the system.

BUG=chrome-os-partner:43302
TEST=Run `test_that --board <board> --fast <remote> graphics_WebGLAquarium`
and verify the test passes without error.

Change-Id: If569825d142ca799712f9c41d90911f3bc49ddc9
Signed-off-by: Ricky Liang <jcliang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/290494
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
5d38c53a261326627df7bc70a028374d837040b7 28-Jul-2015 Ricky Liang <jcliang@chromium.org> site_utils: Close file after reading in _get_line_from_file().

BUG=chrome-os-partner:43302
TEST=Run `test_that --board <board> --fast <remote> graphics_WebGLAquarium`
and verify the test passes without error.

Change-Id: I72363fb09cc5a96da832069c019f0d228ba370d6
Signed-off-by: Ricky Liang <jcliang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/290493
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
a07e1f3dfb90773be2159fc64991b7390d270bf3 17-Jul-2015 HS Liao <hs.liao@mediatek.com> autotest (graphics): support imagination rogue gpu type

Set gpu type as 'rogue' if /sys/bus/platform/drivers/pvrsrvkm exists.
Rogue is the name of Imagination's PowerVR Series6 architecture.

Other Imagination's GPU series may also use this folder,
so please update this condition when we need to distinguish them.

BUG=chrome-os-partner:41569
TEST=test_that -b oak --results_dir=./log <IP> f:.*graphics_dEQP/control.gles2.accuracy

Change-Id: Iab06a6eb076d642d18e3d1ec1de1572a2a300e0b
Signed-off-by: HS Liao <hs.liao@mediatek.com>
Reviewed-on: https://chromium-review.googlesource.com/286300
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
9fbc563b05d73cd3de432bd821d381499e14c70a 06-Jun-2015 Ilja H. Friedel <ihf@chromium.org> Add PCI ID for SKL.

BUG=None.
TEST=None.

Change-Id: Ie9061752bd9d9c579b2bbe9438075b6df1cbe370
Reviewed-on: https://chromium-review.googlesource.com/275741
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Trybot-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
ba596b3895acac29f10f2c43b4846bc98a822f3b 28-May-2015 Rohit Makasana <rohitbm@chromium.org> Adding a power consumption perf test for audio.

BUG=chromium:492905
TEST=Ran locally

Change-Id: Ie573f544206c0cbcfbf9e1566f0121d0ec3528fe
Reviewed-on: https://chromium-review.googlesource.com/273902
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Reviewed-by: Mussa Kiroga <mussa@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: Rohit Makasana <rohitbm@chromium.org>
Trybot-Ready: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
ca3be48da9dd7882ba282d9e82413b4aad2a8364 06-May-2015 Dan Shi <dshi@chromium.org> [autotest] Add sudo -n option to avoid password prompt.

Also add a utility function to check if password is needed to run sudo command.

We can add -n option to all sudo command that SSP used. However, once the
property drone.support_ssp is set to False, no SSP code will be executed.
Therefore, there is no need to add -n everywhere.

BUG=chromium:484396
TEST=local run
Start scheduler, confirm no password promt, and drone.support_ssp is False.
Run sudo true, enter password.
Run scheduler again, confirm no password promt, and drone.support_ssp is True.

Change-Id: Ifbd302973db5d443499311e435ec99e32d24cb5b
Reviewed-on: https://chromium-review.googlesource.com/269740
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/client/bin/site_utils.py
4f6506d9a5b87d690c8d669ca94bfbdd7e3d2896 18-May-2015 Ilja H. Friedel <ihf@chromium.org> Adding PCI ids for Intel GPUs.

Adding a second bsw id, and an initial id for skl. This fixes running
the graphics test suite on these platforms.

BUG=None.
TEST=None.

Change-Id: Ie04f6e8519269691f3f23fe80d50b52c4a8f4a0f
Reviewed-on: https://chromium-review.googlesource.com/271793
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
45998bbbf93ef1aa1ceb1ba0d8f4b3fe88d1f5c5 11-Apr-2015 Dan Shi <dshi@chromium.org> [autotest] Bug fix in determine if a process is running in a virtual machine.

BUG=chromium:453614
TEST=local test

Change-Id: I70fe75e842a0a181a55c15d4b60f616e8578cc0b
Reviewed-on: https://chromium-review.googlesource.com/265343
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/bin/site_utils.py
f2a2dd64129cb12158bf065e61d9328ac45b1e2f 10-Apr-2015 Dan Shi <dshi@chromium.org> [autotest] Update lxc wrapper to work with Ganeti instance

trusty/server with updated kernel does not support lxc-clone with snapshot,
the wrapper (lxc.py) is updated so SSP can work before ticket (t/16003207)
is resolved.

BUG=chromium:453614
TEST=verified in cros-database-bak-test-1

Change-Id: I45208d745dea5614930481b9f159293b1f933cc7
Reviewed-on: https://chromium-review.googlesource.com/265274
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/client/bin/site_utils.py
5b4992ca79c132fb664800c3dbfb3e4d3f277ba3 19-Mar-2015 Frank Henigman <fjhenigman@chromium.org> graphics_utils: re-enable wflinfo for freon

Once waffle supports the null platform, wflinfo will work again.

BUG=chromium:468531
TEST="test_that -b link $HOST graphics_SanAngeles" and look for wflinfo in log
CQ-DEPEND=CL:260686

Change-Id: I7eae2ae9120278b6593001e45124fab2086e1ac6
Reviewed-on: https://chromium-review.googlesource.com/260993
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
Tested-by: Frank Henigman <fjhenigman@chromium.org>
/external/autotest/client/bin/site_utils.py
671ca277049cb1a9bc171ad173c40c44786f022b 27-Dec-2014 Chris Masone <cmasone@chromium.org> Make graphics tests kill X using python utils.

We'd like to deprecate term_process on base images, and the
graphics autotests are one of very few dependencies on this
shell function. The usage there should be easily replaced
by equivalent python code.

BUG=chromium:383133
TEST=Run graphics_*

Change-Id: I7f1607489f52fc9d0b591532ad1588aa1f46c049
Reviewed-on: https://chromium-review.googlesource.com/238303
Trybot-Ready: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/bin/site_utils.py
928a1ffddf4088d7427704ab1b086ca24d9c77a1 27-Dec-2014 Chris Masone <cmasone@chromium.org> get_process_list should return a list as documented.

get_process_list() claims that it returns a list of pids. Until this
patch, it actually returned a string that contained a whitespace-delimited
list of pids. Now, it returns an actual list of PIDs.

BUG=None
TEST=trybot with HWTest

Change-Id: I8d4d8c1d6e788e2427c8a47f6e1df454755af484
Reviewed-on: https://chromium-review.googlesource.com/237750
Trybot-Ready: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/bin/site_utils.py
fd07073966185d0f1655ebc6a01422edd98a7f33 02-Nov-2014 Frank Henigman <fjhenigman@chromium.org> autotest/graphics: use wflinfo instead of glxinfo

wflinfo (from the waffle package) returns information about the graphics
system similar to glxinfo, but it runs on a variety of platforms:
x11/glx, egl/x11, egl/gbm. This way we don't need special cases for
different platforms and can support X-less (freon) platforms.

BUG=chromium:422167
TEST=test_that -b lumpy -i trybot-lumpy-paladin/R41-6438.0.0-b1880 :lab: graphics_SanAngeles

Change-Id: I895910441e84e2ef3d46a06449847edd7623de63
Reviewed-on: https://chromium-review.googlesource.com/226962
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
Tested-by: Frank Henigman <fjhenigman@chromium.org>
/external/autotest/client/bin/site_utils.py
dbb72dae034fb484580f4072a9273c6f5551360f 12-Nov-2014 Brian Wilson <brian.wilson@intel.com> Fix Piglit autotest failure on Strago

Without this addition to the GPU device code table, Piglit fails very quickly.

BUG=None
TEST=Run piglit autotest (test_that -b strago [DUT IP] graphics_Piglit).
TEST=Test should not immediately fail

Change-Id: I3901232ba556f6d3ba950dbf7bb857ec75a88186
Reviewed-on: https://chromium-review.googlesource.com/229311
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
5ca0ab90db74a28f72239c5a048c6b1eedcb0894 30-Oct-2014 Bernie Thompson <bhthompson@chromium.org> site_utils: add additional Broadwell graphics id

BUG=chrome-os-partner:33413
TEST=None

Change-Id: If04a6faa2f78a427ee7580a6e431c67c4e3c688e
Reviewed-on: https://chromium-review.googlesource.com/226610
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Kuen Liu <kuen.liu@quantatw.com>
Tested-by: Kuen Liu <kuen.liu@quantatw.com>
/external/autotest/client/bin/site_utils.py
aec3bf5a657ad9e111e2c337446fbac49707c65d 24-Sep-2014 ZhengShunQian <zhengsq@rock-chips.com> Veyron: Add rockchip to SoC family

Some tests such as graphics_KernelMemory read SoC name and Gpu family from
/proc/cpuinfo.

BUG=chrome-os-partner:32298
TEST=graphics_KernelMemory pass on pinky board

Change-Id: If2a71661819b7e13170678537f3d62d150481a5c
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/219678
Reviewed-by: Xu Jianqun <jay.xu@rock-chips.com>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
2086a16b1159940fdda163ccf1b6ed9cd1c75d65 31-Oct-2014 Ilja H. Friedel <ihf@chromium.org> autotest: add logging for hot machine.

When a machine remains hot we need more information if there is
a process keeping it warm.

BUG=chromium:417517
TEST=pylint

Change-Id: I8cca3c9c4e3e42f2322087aa15a997c9077495b0
Reviewed-on: https://chromium-review.googlesource.com/226776
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/bin/site_utils.py
a5ab166f36554278718e4b0c1412c49276ce1e25 16-Oct-2014 Ilja H. Friedel <ihf@chromium.org> autotest: move more X code to graphics_utils.

Move xrandr to graphics_utils.
Also add assert to functions that are still setting DISPLAY etc.

BUG=chromium:413127, chromium:422414
TEST=Check that output from command below looks reasonable.
test_that link_freon|nyan_big hardware_Resolution hardware_Xrandr
hardware_ch7036 power_BacklightControl platform_EvdevSynDropTest
hardware_TouchScreenPowerCycles hardware_VideoDecodeCapable
hardware_Trackpad

Change-Id: I029b706bec7d4e7a1d9f904e5f2b0f9e8d7fb193
Reviewed-on: https://chromium-review.googlesource.com/223632
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
d0f25118d6c16787b080c0f1c434646425915454 20-Sep-2014 Stéphane Marchesin <marcheu@chromium.org> Add more headless machines to has_no_monitor()

Otherwise we try to run graphics_Idle's FBC test, which doesn't work
if you're headless.

BUG=none
TEST=none

Change-Id: Ia0a57edf4295380148c129a765288821c6f8ab96
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/219169
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
d994a677b7d3f992d3e73a62ade90f5ff9feca23 12-Sep-2014 Zach Reizner <zachr@chromium.org> add gfx system detection function to site_utils

BUG=chromium:413819
TEST=None

Change-Id: I5268e7d7b2ff1009c5b31c3d6a1cf7aac4f4cc89
Reviewed-on: https://chromium-review.googlesource.com/217942
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
/external/autotest/client/bin/site_utils.py
666232e256802be8b71f107c8f2a4f55fc0c46b1 27-Aug-2014 Wen-Ding Li <wending@google.com> Fix the restore_scaling_governor_states function in site_utils.py

The input scaling governor state with trailing linefeed can not
be set properly, so remove the trailing linefeed before setting.

BUG=chromium:408002
TEST=test on a chromebook device

Change-Id: I1d9b004efd4bc38b2160a054234ba6b7f3185e53
Reviewed-on: https://chromium-review.googlesource.com/214432
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Reviewed-by: Wu-Cheng Li <wuchengli@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Wen-Ding Li <wending@google.com>
Tested-by: Wen-Ding Li <wending@google.com>
/external/autotest/client/bin/site_utils.py
7404dd54f095c2f3ff6e5566749b3689f252dd16 16-Jun-2014 Ben Zhang <benzh@chromium.org> Add PCI ID for broadwell gpu detection

BUG=none
TEST=run graphics_PiglitBVT and see the test doesn't fail with
Unhandled KeyError: 5654 (0x1616)

Change-Id: I28afbc863d12218dedde08057cc5273be278efb3
Signed-off-by: Ben Zhang <benzh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/203966
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
8b811e05e984afbdbdba57d0695279e3f28430de 02-Jun-2014 Puthikorn Voravootivat <puthik@chromium.org> fio_util: Change description and graph name in perf_measurements

We send FIO result perf data to chrome perf dashboard but the
data from same platform with different internal disk (Example:
falco 16G and 32G) get mixed in the same graph which makes
the results to be not meaningful. This patch fixes that by
separate each disk model/size to its own graph.

Also move util to where it should be
- Move fio_util from client/common_lib to client/bin
- Move get_disk_size() from site_utils to base_utils

BUG=chromium:379468
TEST=Run in falco/peach_pit. Get desired result in perf_measurements

Change-Id: I50518ce541cb4b2fc21b67db1bbd5de82ddecc6d
Reviewed-on: https://chromium-review.googlesource.com/202331
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
/external/autotest/client/bin/site_utils.py
471f49cc946ff09cfa5def2868daecb452b37fd2 30-May-2014 Ilja Friedel <ihf@chromium.org> Flush system logs with short delay for graphics tests.

The ChromeOS default right now is 10 minutes and we lower it to 1 second.
For this we save and change /proc/sys/vm/dirty_writeback_centisecs

TEST=Watched dirty_writeback_centisecs while running SanAngeles on link.
BUG=chromium:378979

Change-Id: I7dd5e0c92bbacf13d1cb3aa5d610be223222632d
Reviewed-on: https://chromium-review.googlesource.com/202204
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
06b98e260ffbabbd07a8169bcff1316707cb4279 13-May-2014 Achuith Bhandarkar <achuith@chromium.org> Support for Remora enrollment.

* Methods for enterprise enrollment of Remora devices.
* Methods to save TPM password and clear TPM.
* utility function to read credentials from a file.
* sample test that exercises enrollment.

BUG=chromium:342884
TEST=enterprise_RemoraRequisition

Change-Id: Ie872e9ba0702474d9f605c5520577cf4e0ad21d2
Reviewed-on: https://chromium-review.googlesource.com/199560
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Mattias Nissler <mnissler@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
/external/autotest/client/bin/site_utils.py
540af155fcd1016257478c22de8828b449d18085 20-May-2014 Puthikorn Voravootivat <puthik@chromium.org> autotest: Add common code for disk related function.

Add the following functions in site_utils and modify current
client tests to use function in the utils instead of their
own implementation. Also move get_fixed_dst_drive from utils
to site_utils as this function is ChromeOS specific.
- Get root device
- Get root partition
- Get spare root partition for testing
- Check whether system is booted from internal disk or not
- Get disk/partition size

BUG=chromium:375396
TEST=Test affected function (listed below) with test_that.
hardware_Badblocks, hardware_DiskSize, hardware_Smartctl,
hardware_StorageFio, hardware_StorageTrim,
hardware_TrimIntegrity, power_Consumption,
platform_RootPartitionsNotMounted

Change-Id: I2c3ea95a5d603e3700115006d77db897ab2847e5
Reviewed-on: https://chromium-review.googlesource.com/200627
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
/external/autotest/client/bin/site_utils.py
3f5d7687852d571a9e547b439f5d03deb776fa0a 08-May-2014 Ilja H. Friedel <ihf@chromium.org> Better PerfControl temperature spew.

Also, only fail tests from now on if we hit critical temperature.

BUG=None.
TEST=Ran graphics_PerfControl, graphics_GLBench, graphics_GLMark2 on link.

Change-Id: If83d3635d0d40decfe8a4e7cca0fc910d3543ed2
Reviewed-on: https://chromium-review.googlesource.com/199240
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
04be2bd5e4666a5c253e9c30ab20555e04286032 08-May-2014 Ilja H. Friedel <ihf@chromium.org> Autotest: Change logging.warn() to logging.warning().

logging.warn() is deprecated. See
http://bugs.python.org/issue13235

Substitution was performed via
~/cros/src/third_party/autotest/files$ find ./ -type f | xargs sed -i 's/logging.warn(/logging.warning(/'

BUG=None.
TEST=There should be one-- and preferably only one --obvious way to do it.

Change-Id: Ie5665743121a49f7fbd5d1f47896a7c65e87e489
Reviewed-on: https://chromium-review.googlesource.com/198793
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
/external/autotest/client/bin/site_utils.py
977aaddd5fbb6e787b442bdf0ddc054326dcbb4d 30-Apr-2014 Ilja Friedel <ihf@chromium.org> graphics_GLBench: thermal fixes.

This change makes measuring temperatures from glbench more robust.
Also decouples -hasty from temperatures for more robustness.
Finally try to detect unexpected test termination better.

TEST=Ran on nyan_big.
BUG=chrome-os-partner:23243

Change-Id: Iec65cb9aaa42534148c3a65043368492baca1d54
Reviewed-on: https://chromium-review.googlesource.com/197605
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
26778371978182b2abb747d7244085dd96092216 03-May-2014 Stéphane Marchesin <marcheu@chromium.org> Add more PCI IDs for gpu detection

0x0116 is another sandybridge
0x0a16 is another haswell

BUG=none
TEST=none

Change-Id: I454d9ce5a1527d23496442228f73e8ad29ee6c7e
Reviewed-on: https://chromium-review.googlesource.com/198093
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/bin/site_utils.py
85185624e49cdb3e2a8ba40c93c7f060529debb8 03-May-2014 Stéphane Marchesin <marcheu@chromium.org> Don't run FBC test on machines which don't have a monitor

If the machine doesn't have a monitor, we can't reach FBC.

BUG=none
TEST=none

Change-Id: Ibf3582d53c1347b5642c952f84b4aa9fceac93f3
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/198094
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
bf67617f8f4cc06f0b63fae3c60f3cc1d228c40b 26-Apr-2014 Stéphane Marchesin <marcheu@chromium.org> Add graphics_Idle test

This adds a new graphics_Idle test which checks different things when the
GPU is idle:
- panel downclock is in use
- short blanking is enabled
- rc6 is in use
- dvfs goes to the lowest clock
- fbc works
- all gem objects are idle

BUG=chromium:361897, chromium:363747
TEST=run the test on lumpy, daisy, glimmer, rambi, falco

Change-Id: I93e860c6f2ed2adc2905a82e4885cd99bfdff112
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/197167
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
5a9da4a47e9c5b9985d269808c05a197025cf316 17-Apr-2014 Ilja Friedel <ihf@chromium.org> WAR for get_temperature_critical on Rambi.

Search more extensively for hwmon values and clamp unreasonable
temperatures to known good values.

TEST=Ran locally on daisy and link.
cbuildbot --remote -g 195272 --hwtest x86-alex-paladin peppy-paladin samus-paladin \
peach_pit-paladin rambi-paladin clapper-paladin glimmer-paladin
BUG=chromium:360249

Change-Id: I2ce7f9caaa4518786da80a32827498a856523382
Reviewed-on: https://chromium-review.googlesource.com/195272
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Dominik Behr <dbehr@chromium.org>
/external/autotest/client/bin/site_utils.py
85f4c36b14448d8fd707b34107c7688f13f258f2 08-Apr-2014 Simran Basi <sbasi@chromium.org> Moblab: Display 'moblab' user as default in AFE.

Currently there are 2 separate users for Moblab: 'default_user' for
kicking off jobs from the AFE and 'moblab' for kicking off jobs from
the run_suite command.

This change defaults the AFE to use 'moblab'. And allows jobs to be
aborted from the AFE.

BUG=chromium:358579
TEST=Moblab AFE defaults to 'moblab' user and is able to abort jobs
created by run_suite. Also verified get_current_board() still works
on a moblab.

Change-Id: Ic9a0a7bfc745a670796863629d070056e1dfd69f
Reviewed-on: https://chromium-review.googlesource.com/193657
Reviewed-by: Prashanth B <beeps@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/client/bin/site_utils.py
bc5755163c8100df7edd9045211e6fcd5989ad09 01-Apr-2014 Ilja H. Friedel <ihf@chromium.org> Add graphics_PerfControl autotests.

This test exercises an empty performance test wrapped in the PerfControl
object. It essentially checks that we are able to
- read board temperatures
- read CPU frequencies
- read CPU utilization
- set the governor.
Finally it waits to obtain a cold, idle machine.

This change also cleans up site_utils.py to make reading these values more
robust.

BUG=chromium:357980
TEST=Runs locally on daisy and link. trybots no good.
test_that <ip> graphics_PerfControl graphics_GLMark2 graphics_GLBench

Change-Id: I727387a4a65be33b855b214e78846841b91a0aab
Reviewed-on: https://chromium-review.googlesource.com/192531
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
14d1480c1981dee4723a028598302c52d71150ae 31-Mar-2014 Ilja Friedel <ihf@chromium.org> Fix graphics_GLBench: ignore ectool temperatures on ARM.

BUG=chromium:357980
TEST=Ran on graphics_GLBench daisy. Got non-matching images due to
crbug.com/357880. Temperatures looked fine.

Change-Id: I5d013733caa0a494dbbf023ae7789d98ffa70873
Reviewed-on: https://chromium-review.googlesource.com/192421
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
/external/autotest/client/bin/site_utils.py
3b4712cc3f0a77cfa7851fb73fb03fcb0c4e6318 14-Mar-2014 Ilja Friedel <ihf@chromium.org> Start monitoring temperature during tests.

There are two parts to this:
1) Added infrastructure to site_utils.py to get machine into defined state
and keep tests honest.
2) Change glbench binary to base its wait times on currently observed
temperatures.

This should make the test faster, as we can cut down on blind sleep times.
But I don't expect on its own to change the numbers.

BUG=chromium:344766
TEST=1) Ran graphics_GLBench on link.
2) Ran hardware_SsdDetection and firmware_TouchMTB on link to ensure
get_board() still works for them.

Change-Id: I3cb908a35d911a3f9ca6ef194aa5a3d1ac3e2152
Reviewed-on: https://chromium-review.googlesource.com/190290
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/bin/site_utils.py
42052a2eab846f5c2f22cdc2d231d74d99550f45 06-Mar-2014 Ilja H. Friedel <ihf@chromium.org> Wait for idle machine before running perf tests.

Most of the code moved into site_utils.py is from pyauto which is going
away. Also instrument two graphics tests with it. Finally massage some
GLBench units to get away from the generic and not quite right Hz.

BUG=chromium:344672, chromium:344766
TEST=Ran on link, made sure we get a "top" in the logs when not idle
after one minute.

Change-Id: I44bb2fc230544f27ec31e064e6c279ecd674cbf2
Reviewed-on: https://chromium-review.googlesource.com/189017
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
/external/autotest/client/bin/site_utils.py
c1d263b436976b7516f77e84386ec0fbe2b3cfbe 05-Oct-2013 Dan Shi <dshi@chromium.org> [autotest] add a wrapper for client side chrome driver based test

client/common_lib/cros/chromedriver.py
|chromedriver| is a wrapper class for any client side test that wants to use
Chrome Driver to interact with the browser. The wrapper class handles log in
with Telemtry when an instance of chrome_driver is instantiated. It exposes a
property |driver| for test to call methods of Chrome Driver.

|chromedriver_server| is a wrapper class to start/stop chromedriver server in
remote mode. That is, ChromeOS logged in with debugging port opened using
Telemetry, Chrome Driver started by specifying the remote debug port of Chrome
browser.

client/site_tests/desktopui_UrlFetchWithChromeDriver
A sample test that use Chrome Driver/Selenium to test browser url and cookie.
This test takes following test as an example, which uses pyauto.
client/site_tests/desktopui_UrlFetch

related CL that adds Chrome Driver to test image:
https://chromium-review.googlesource.com/#/c/173183/

TODO(dshi)> another CL will be added to add desktopui_UrlFetchWithChromeDriver
to ebuild: chromeos-base/autotest-chrome/autotest-chrome-9999.ebuild

BUG=chromium:289702
TEST=test_that 172.22.75.225 desktopui_UrlFetchWithChromeDriver
trybot build: Tested in build trybot-lumpy-paladin/R32-4831.0.0-b1336

Change-Id: I8d3ec8a8bd3e14cdc4cc5d9c76f19a422ad0e00b
Reviewed-on: https://chromium-review.googlesource.com/172082
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/client/bin/site_utils.py
03c3e44f31b5a90ea05ab03aa2a32f4f1f0f0093 22-Oct-2013 Dan Shi <dshi@chromium.org> [autotest] add a method to get pid and command line of oldest process with name matches |name|

BUG=chromium:289702
TEST=None

Change-Id: I8942e704df64b0283b884d3aea19437f40921116
Reviewed-on: https://chromium-review.googlesource.com/174102
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/bin/site_utils.py
7d6af6852fcfdb956e4723eb076e10533f48d3f2 06-Aug-2013 Chris Masone <cmasone@chromium.org> Add desktopui_CrashyReboot{Server} autotest

To address some GPU hanging problems, we added logic to reboot the
device if the UI seemed to crash too much, too often.
This server-side test validates this logic by deploying an
associated client-side test to the DUT that drives it into
the failure state.

CQ-DEPEND=CL:65243
BUG=chromium:261784
TEST=run this autotest, and it should succeed.
TEST=run this autotest and while it's running, echo $(date +%s) > /var/lib/ui/reboot-timestamps. The test should fail.

Change-Id: I68af57e0266e85434ad63e1f646e90a41a6d393d
Reviewed-on: https://gerrit.chromium.org/gerrit/65218
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
/external/autotest/client/bin/site_utils.py
c018b97e074c876c765ccfc4e9732a3d8c6a4cb8 29-Jul-2013 Rohit Makasana <rohitbm@chromium.org> Adding YouTube Flash tests and refactoring YT functions
in a helper class so new tests can reuse the code.

TEST=ran manually
BUG=chromium:265409

Change-Id: I4e28e4cd5be9ee0f6852b9ab5bc1c2ccfdaf9453
Reviewed-on: https://gerrit.chromium.org/gerrit/63598
Reviewed-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/bin/site_utils.py
77f06bcdf7e579f8cb1fd4a2ad030cc7b75b13ff 30-Mar-2013 Mike Truty <truty@chromium.org> Create a simple aplay test that can be used in other suites.

This way the aplay test can be run in bvt or kernel_per-build_regression
and also easily run by suspend/resume suites.

Add test to run in serial in SuspendStress.
Add test to run in parallel in SuspendStress.
Add test to run in serial in CheckAfterSuspend.

BUG=None
TEST=./run_remote_tests.sh --remote=w.x.y.z --board=link audiovideo_Aplay
TEST=./run_remote_tests.sh --remote=w.x.y.z --board=link \
client/site_tests/power_SuspendStress/control.audioPerBuild
TEST=./run_remote_tests.sh --remote=w.x.y.z --board=link --use_emerged \
client/site_tests/power_SuspendStress/control.barePerBuild
TEST=./run_remote_tests.sh --remote=w.x.y.z --board=link \
client/site_tests/power_CheckAfterSuspend/control.per_build

Change-Id: Ieea9dbb6afd072812851e6db799fd2bc887f1023
Reviewed-on: https://gerrit.chromium.org/gerrit/46967
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Mike Truty <truty@chromium.org>
Tested-by: Mike Truty <truty@chromium.org>
/external/autotest/client/bin/site_utils.py
af85909e1005f66832ac8b50674f512d42f24b47 20-Nov-2012 Chris Masone <cmasone@chromium.org> [autotest] Add autotest for browser hang detection

Add desktopui_HangDetector to verify that session_manager's hang detection
for the browser process works.
It will start in the 'regression' suite as an experimental test.

BUG=chromium-os:35729
TEST=run it with run_remote_tests.
CQ-DEPEND=I3e60e1cbda652a3e52126cd69b2ff4cd02cc6a74
CQ-DEPEND=Ied5c9e897485aaf75fdefd211445219712972bdf

Change-Id: I1ba7a4f5db97fb1b92fd5366a18c984a7f5494bc
Reviewed-on: https://gerrit.chromium.org/gerrit/38347
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
/external/autotest/client/bin/site_utils.py
c6f1f7af48f57144c5563afac7672ffed527207d 16-Oct-2012 Simran Basi <sbasi@chromium.org> Autotest: Add label detection to site_host and add it to the CLI

Currently we manually maintain the list of labels for a given DUT,
in order to make this process easier we added methods to site_hosts
to automatically determine certain attributes/labels for a given
host.

The autotest CLI was also updated such that it can now utilize the
auto label detection methods. If no platform is provided for a given
list of hostnames, it will look up the correct platform for each.
And if it can retrieve the host's labels it will assign a Set of the
detectable labels merged with the command line inputted labels.

BUG=chromium-os:18976
TEST=Ran cli/atest create host locally.

Change-Id: I50480fcddbce60b8d5693f1268ca36d1aea12e23
Reviewed-on: https://gerrit.chromium.org/gerrit/35889
Commit-Ready: Simran Basi <sbasi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/client/bin/site_utils.py
e72f7e4b021427bd5c9ca46411f0e423001ad5b0 16-Mar-2012 Mike Frysinger <vapier@chromium.org> site_utils: improve compiler checking

Look at the output of the preprocessor rather than producing an ELF in
a hardcoded location (like /tmp/a.out). If the file is owned by someone
else, the tests will fail to detect things properly. So avoid that by
not using a temp file at all.

BUG=None
TEST=running iotools.py by hand with diff compilers showed pie patch being applied as needed
TEST=running piglit.py by hand with diff compilers showed x86 being detected correctly

Change-Id: Ieb4541e2d79e90a08390ae110ab4cb681325e6b3
Reviewed-on: https://gerrit.chromium.org/gerrit/18388
Reviewed-by: asharif <asharif@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
/external/autotest/client/bin/site_utils.py
172edad210df2e63d1fae1bc1f3738b2a9baaa6a 08-Feb-2012 Sonny Rao <sonnyrao@chromium.org> Fix piglit to install on all x86 boards

This adds a function to utils which tests the compiled output and
determines if the target is x86. This function is then used by the
piglit code to determine if it should be installed or not.

BUG=chrome-os-partner:7942
TEST=`emerge-x86-mario autotest autotest-deps-piglit` installs piglit
TEST=`emerge-lumpy autotest autotest-deps-piglit` installs piglit

Change-Id: I074ab1991f3c6b8d30e6cf94846d87e6158b0ee3
Reviewed-on: https://gerrit.chromium.org/gerrit/15467
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
/external/autotest/client/bin/site_utils.py
4f646a3956116280bbe9799789fdaf4874a19064 30-Nov-2011 Jon Salz <jsalz@chromium.org> Factory VM and servo tests.

BUG=chrome-os-partner:6534
TEST=Ran the test manually

Change-Id: Ia844e37d892540cc0cf73dae73a21e74b85e6766
Reviewed-on: https://gerrit.chromium.org/gerrit/11843
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Jon Salz <jsalz@chromium.org>
Commit-Ready: Jon Salz <jsalz@chromium.org>
/external/autotest/client/bin/site_utils.py
2f0ebba3c2ac427cee397bfe45ef7d58f64911aa 27-Oct-2011 Elly Jones <ellyjones@chromium.org> platform_Cryptohome: Add more test cases.

In particular, test bad dirents in the multi-mount paths. CryptohomeBadPerms
tests directories with bad permissions, CryptohomeNonDirs tests non-dirents in
the mount path.

BUG=chromium-os:20778
TEST=Yes. Needs CLs 10193 and 10670.

Change-Id: I3ad1cd65a88739ab4ac6bcc675def358ff728384
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/10801
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
/external/autotest/client/bin/site_utils.py
686c2f457512331a37cc9ed8fab34cf90513c433 24-Oct-2011 Elly Jones <ellyjones@chromium.org> platform_CryptohomeMultiple: add.

Tests multiple concurrent cryptohome mounts.

BUG=chromium-os:20778
TEST=Yes

Change-Id: I78aa1d35a6554d8fda2a1d0980bb1a3d0b9c9f69
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/10588
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
/external/autotest/client/bin/site_utils.py
d51ac9cdab93aee5b408dde4543a00d9913f740f 10-Sep-2011 David James <davidjames@chromium.org> Refactor tests to consistently wait for login prompt to show up after logout.

This CL refactors the autotest suite to consistently check for the login prompt
visibility whenever the session manager is killed. This ensures that the Window
Manager can depend on being fully initialized prior to being killed.

BUG=chromium-os:18919
TEST=Ran trybot run with VM tests.

Change-Id: I1747bc55c66c3eeae10e2cafa2dfc8219d758874
Reviewed-on: http://gerrit.chromium.org/gerrit/8184
Commit-Ready: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
/external/autotest/client/bin/site_utils.py
a7fb896dfe7cd4f0d7a9e8cd3efa3bf5a2ad2330 17-Aug-2011 Gaurav Shah <gauravsh@chromium.org> autotest: Make poll_for_condition log the error before raising an exception

When a test fails or errors out (via raising one of the derived TestError or
TestFail exceptions), autotest displays the <test name>.ERROR log file to help
debug the reason for the test failure.

Many of our test failures are caused due to timeouts while waiting for a
condition using poll_for_condition and these do not get logged to the ERROR log
file.

This CL adds a logging.error call with the error description to
poll_for_condition before the exception is raised to signify test failure. Also
added logging to a couple of other places where some custom TestError exceptions
are raised.

BUG=none
TEST=Caused a deliberate timeout failure on login_CryptohomeMounted by reducing the timeout
to a very small value. The test ERROR file now contained the timeout error message.

Change-Id: I4915e2dd3eaf72de562c0ccf53429b8ed8f6bf04
Reviewed-on: http://gerrit.chromium.org/gerrit/6115
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
/external/autotest/client/bin/site_utils.py
f8e926205db7a22f1a74bec1e559282f3238ae27 24-May-2011 Ahmad Sharif <asharif@chromium.org> Added a better way to check for -pie default flags.

With gcc-4.6, we'll move to a wrapper script that invokes gcc and adds
default flags so -dumpspecs wont tell you whether the compiler is
hardened or not.

BUG=none
TEST=emerge-$BOARD autotest-deps-iotools w/ gcc-4.6

Change-Id: Ie069ffc9a3ba70ec0f3b9bfee2d5dcce515f4097
Reviewed-on: http://gerrit.chromium.org/gerrit/1469
Tested-by: asharif <asharif@chromium.org>
Reviewed-by: Eric Li <ericli@chromium.org>
/external/autotest/client/bin/site_utils.py
29916f2eff1806f0fcb5e15e5758583a44a3aa31 13-Apr-2011 Vadim Bendebury <vbendeb@chromium.org> Add tests for ACPI startup messages.

This CL introduces a check which verifies that all expected
ACPI related startup messages are present in the dmesg,
output and no unexpected messages are present.

The expected messages' set is platform specific, the
previously introduced Crossystem class (see
http://codereview.chromium.org/6810022) is used to
determine the platform the test is running on).

Change-Id: I32927d5c7aa84eb07d3989cf69377b7325d1f4dc

BUG=chromium-os:13937
TEST=manual

on Alex:

./run_remote_tests.sh --board x86-alex --remote 172.22.75.120 kernel_BootMessagesServer
...
INFO : Test results:
---------------------------------------------------------
kernel_BootMessagesServer PASS
kernel_BootMessagesServer/kernel_BootMessagesServer PASS
coldboot_active_mb 58
coldboot_anonpages_mb 36
coldboot_buffers_mb 3
coldboot_cached_mb 176
coldboot_inactive_mb 157
coldboot_memfree_mb 1640
---------------------------------------------------------
Total PASS: 2/2 (100%)

====================================================
./run_remote_tests.sh --board x86-mario --remote 172.22.75.17 kernel_BootMessagesServer
...
INFO : Test results:
---------------------------------------------------------
kernel_BootMessagesServer PASS
kernel_BootMessagesServer/kernel_BootMessagesServer PASS
coldboot_active_mb 45
coldboot_anonpages_mb 33
coldboot_buffers_mb 3
coldboot_cached_mb 155
coldboot_inactive_mb 146
coldboot_memfree_mb 1664
---------------------------------------------------------
Total PASS: 2/2 (100%)

No crashes detected during testing.

Review URL: http://codereview.chromium.org/6815023
/external/autotest/client/bin/site_utils.py
e797092142d0e4627115ad7f0c1a482fc8e9312e 08-Apr-2011 Vadim Bendebury <vbendeb@chromium.org> Fix kernel testing and make it target specific.

A cherry-pick of of http://codereview.chromium.org/6810022.

This CL fixes kernel messages autotest by introducing
platform specific lists of the kernel warning and error
messages expected on startup.

Some of these messages are harmless, and some require
investigation/fixing. This CL just cleans up the lists of
accepted error/warning messages and provides for platform
specific extensions.

The recently introduced crossystem utility is the way to
deteremine system specific parameters in a platform
independent way. This CL introduces a class to represent
the crossystem reported information in a programmatic way.

The crossystem output of form 'name = value' is parsed and
placed in a dictionary. The __getatttr__() method override
allows to use object_instance.name() to access the value of
the parameter 'name'.

Instead of using exact warning/error messages' list the
regexes of messages are allowed, which is handy in
situations when messages are run time specific (use hash
values or addresses, etc.)

Change-Id: Id4c5fc930353d947d912c44150279aa94c2ea471

BUG=chromium-os:13937
TEST=manual, see below

./run_remote_tests.sh --board x86-alex --remote 172.22.75.120 kernel_BootMessagesServer
...
INFO : Test results:
---------------------------------------------------------
kernel_BootMessagesServer PASS
kernel_BootMessagesServer/kernel_BootMessagesServer PASS
coldboot_active_mb 59
coldboot_anonpages_mb 37
coldboot_buffers_mb 3
coldboot_cached_mb 177
coldboot_inactive_mb 159
coldboot_memfree_mb 1637
---------------------------------------------------------
Total PASS: 2/2 (100%)

===========================================================
./run_remote_tests.sh --board x86-mario --remote 172.22.75.17 kernel_BootMessagesServer
...
INFO : Test results:
---------------------------------------------------------
kernel_BootMessagesServer PASS
kernel_BootMessagesServer/kernel_BootMessagesServer PASS
coldboot_active_mb 48
coldboot_anonpages_mb 35
coldboot_buffers_mb 3
coldboot_cached_mb 155
coldboot_inactive_mb 145
coldboot_memfree_mb 1662
---------------------------------------------------------
Total PASS: 2/2 (100%)

Review URL: http://codereview.chromium.org/6816037

Change-Id: I181740b8f3a4224d416ff908467641142ef06aa1
/external/autotest/client/bin/site_utils.py
142ac8d70eb96a18a7ef4eadf061cdb6ea12a8a4 18-Feb-2011 Mandeep Singh Baines <msb@chromium.org> kernel_BootMessagesServer: initial add of new test

This tests verifies that there are no new kernel dmesg warnings.

BUG=12280
TEST=Verified PASS and FAIL.

Change-Id: Iff2b1f6de7ec435928170393ec85e7b8b9201b23

Review URL: http://codereview.chromium.org/6544018
/external/autotest/client/bin/site_utils.py
1904d00cebc4212cf929ce6900197407b1990ca8 01-Dec-2010 Thieu Le <thieule@chromium.org> Add support for saving VM state after test failure

BUG=chromium-os:9577
TEST=Run suite_Smoke with failure and without failure, load VM state to
ensure correctness

Change-Id: I342fd7077f35fa908f0d4e90f7c27e83f2992b07
Change-Id: I385a9614ed6ce953f33ad1830e0f566451903dd7

Review URL: http://codereview.chromium.org/5303005
/external/autotest/client/bin/site_utils.py
5d3e45481f628e7fe5b3ba805f35f512bfad4c2b 18-Aug-2010 Mitsuru Oshima <oshima@chromium.org> Autotest for ScreenLocker
* Removed old ScreenSaverUnlock and utility methods
* Added new ScreenLocker test
* updated site_ui_tests.py so that it can process dbus signal.
* Changed poll_for_condition to use TimeoutError (assuming that's the intention)

BUG=chromium-os:2918
TEST=new desktopui_ScreenLocker test should pass

Review URL: http://codereview.chromium.org/3073014
/external/autotest/client/bin/site_utils.py
f25f73fda2174dcad298db37e872a7b5351fc189 07-Apr-2010 rginda <rginda@chromium.org> switch to autox.py and robustify login/logout code

This CL switches from using the autox binary to using autox.py. This includes backwards
incompatible changes to site_login.py, and I haven't had a chance to fix the affected callsites
yet.

I've also made the login/logout code a little more robust. Now it'll make sure that the login
manager is running under a NEW pid, that X is running, and that at a window is visible before
assuming we're ready to log in.

All of the wait loops have been refactored into wait_for(...), which spits out logging.info()
messages that could be parsed later to determine how long the operations are actually taking.
Perhaps this could make it into a different, non-login specific library soonish.

I'm out of the office for the next few days, but wanted to get this out there before the
trunk totally passed it by. I'll return on Wednesday to finish the job.

Review URL: http://codereview.chromium.org/1534001
/external/autotest/client/bin/site_utils.py
3e3f7f4041a9b0d4f2afc0c80f7fefe03ef5563e 30-Mar-2010 Daniel Erat <derat@google.com> test: Clean up site_login.py a bit.

This has overlap with rginda's
http://codereview.chromium.org/1534001, but there's
one part that I prefer from my change: making all
of these wait_ functions throw exceptions when they
time out, which cuts down on a bunch of code that
would otherwise need to be duplicated across all of
our tests.

I also ran into a bunch of races in UI tests when I
reduced the polling timeout, so I've tried to fix
those too.

BUG=none
TEST=ran the tests, both logged-in and logged-out

Review URL: http://codereview.chromium.org/1565001
/external/autotest/client/bin/site_utils.py