firmware_ECKeyboard: Remove use of 'ectool kbpress'

We can now use UART console and thus don't need 'ectool kbpress'
anymore. Let's remove this since 'ectool kbpress' will be removed.

BUG=chrome-os-partner:10285
TEST=Test passed.

Change-Id: Ie67e74a50d43049041c620ecef1f4667e699c5c5
Reviewed-on: https://gerrit.chromium.org/gerrit/26761
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Fixes factory_AudioQuality mixer settings

BUG=chrome-os-partner:6646
TEST=Run factory_AudioQuality test and each test command can apply the
correct mixer settings.

Change-Id: I168b40ded1072e7a72ceed8219f611ffa3b44025
Reviewed-on: https://gerrit.chromium.org/gerrit/26095
Reviewed-by: Vic Yang <victoryang@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
WiFi Tx/Rx signal strength tests using a specially configured OpenWRT AP

BUG=chromium-os:31919
TEST=autotest - follow instructions in control file

Change-Id: Iee9d07e59c94a133cf305e5c7693d5636218a33e
Reviewed-on: https://gerrit.chromium.org/gerrit/25620
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Vivek Dasmohapatra <vivek@etla.org>
Tested-by: Vivek Dasmohapatra <vivek@etla.org>
Correct default ACL for pgo uploads.

BUG=chromium-os:29829
TEST=Local

Change-Id: I72ffeb2c775229ddc258b2852cbfe6796d0ad7c9
Reviewed-on: https://gerrit.chromium.org/gerrit/25841
Reviewed-by: Peter Mayo <petermayo@chromium.org>
Tested-by: Peter Mayo <petermayo@chromium.org>
Commit-Ready: Peter Mayo <petermayo@chromium.org>
Update the method names of test_ui.

BUG=none
TEST=manual

Change-Id: I12c814102330e86f5691b5cea434a115a2d3f508
Reviewed-on: https://gerrit.chromium.org/gerrit/26809
Reviewed-by: Jon Salz <jsalz@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Chun-Ta Lin <itspeter@chromium.org>
Commit-Ready: Ricky Liang <jcliang@chromium.org>
Tested-by: Ricky Liang <jcliang@chromium.org>
Add a test of EC charging control

This test checks EC charging voltage and current are set correctly, and
the actual voltage/current output to battery are in reasonable range.

BUG=chrome-os-partner:10267
TEST=Test passed.

Change-Id: I7fa0e46568b5128e13bc3daff1e3caaa9695f9cf
Reviewed-on: https://gerrit.chromium.org/gerrit/26777
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Fix a few issues with some recent changes to suite_scheduler.

EnumeratorException was not fully referenced causing crashes.
In deduping_scheduler a function definition was missing self.

Start printing tracebacks in the error messages logged in emailed to make it
easier to track down issues like the above.

TEST=Unittests
BUG=None

Change-Id: Ieee88f9a18debedb1dafdd92fd811d271e4f3816
Reviewed-on: https://gerrit.chromium.org/gerrit/26943
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
Replace autotest.tar.bz2 with autotest.tar in chromeos_test

BUG=chromium-os:32312
TEST=None
CQ-DEPEND=I1cd0e3c029cfd0a9fa27f981b68ba2958c94dec1, I2bd02e1d538181a75a1545bd90ae0465bc75de4e

Change-Id: Ie1586ba3db2a488b6817dfe1e8ec816f449b2f70
Reviewed-on: https://gerrit.chromium.org/gerrit/26683
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Yu-Ju Hong <yjhong@chromium.org>
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
Improve result logging for security_ASLR automated test

BUG=chromium-os:32264
TEST=run_remote_tests.sh ... security_ASLR passes on
x86-alex

Change-Id: I375f86d91b39fa5a7fbec62a7f948bf40070f2d6
Reviewed-on: https://gerrit.chromium.org/gerrit/26970
Reviewed-by: Matt Omori <momori@chromium.org>
Tested-by: Matt Omori <momori@chromium.org>
Reviewed-by: Jim Hebert <jimhebert@chromium.org>
Commit-Ready: Matt Omori <momori@chromium.org>
Unconditionally write to the FIFO pipe even if checksum file missing.

BUG=chromium-os:30220
TEST=Visual/pylint

Change-Id: I83dd4c952a9cf79ca2762730193896cc6f51c3c9
Reviewed-on: https://gerrit.chromium.org/gerrit/26979
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Remove test lists that have moved to platform/factory.

BUG=None
TEST=Manual on device

Change-Id: I86e016a69d3d94377ccc65733c5e9062d50cb70a
Reviewed-on: https://gerrit.chromium.org/gerrit/27011
Tested-by: Jon Salz <jsalz@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Jon Salz <jsalz@chromium.org>
[autotest] Fix test.CanRun() failures.

Previous code assumed that GetHosts would return |[]| instead of |None|
that actually is returned if no matching hosts were found. Made CanRun
return the list of hosts that match the board and pool requirement, and
then renamed CanRun to AvailableHosts to match its new functionality.

BUG=chromium-os:32436
TEST=unit

Change-Id: I84ae0a31c0dc123ad5cf2187b99ea6cbefbabce8
Reviewed-on: https://gerrit.chromium.org/gerrit/27043
Tested-by: Alex Miller <milleral@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Alex Miller <milleral@chromium.org>
Add in random server fixes for the move to the new Atlantis machines.

Update settings.py to contain a SESSION_COOKIE_AGE of 1200 seconds. this is a
temporary hack to keep the number of django sessions down via the autotest
scheduler clean up process. Every new RPC seems to be creating a new
django_session entry and this needs to be futher evaluated.

Update global_config.ini to enable atlantis2 as a drone. This moves the
autoserv processes off of the main database server and opens the door for
further horizontal scaling as we need it later on.

Set the process limit for atlantis2 to 600 so we do not kill the machine.

Add in a dummy site_archive_results so that we do not copy results back to
atlantis1 AKA cautotest. This copy is unnecessary since we move all of our
results to Google Storage via gs_offloader.

TEST=Running live on the server now.
BUG=None

Change-Id: I77fc08c543092c21acd0cc238ea04c91527c9738
Reviewed-on: https://gerrit.chromium.org/gerrit/27057
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Allow and use specification of multiple devservers.

This change modifies the devserver logic to accept a comma-delimited list
of devservers in the global_config.ini. We then take the hash of the image arg
when determining which devserver to use.

BUG=chromium-os:26451
TEST=Unittests so far

Change-Id: I6f01b944a618c186ebd923a2ef4d065196ad169f
Reviewed-on: https://gerrit.chromium.org/gerrit/26496
Commit-Ready: Chris Sosa <sosa@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
power_Resume: use LogReader for parsing the dmesg messages

Use the LogReader class to parse messages from /var/log/messages.

BUG=chromium-os:31434
TEST=works on a Samsung Series 5 550 machine

Change-Id: Ifff845a5771643602e56f7eba3ea89c020f6fba5
Signed-off-by: Lucian Cojocar <cojocar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26491
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
[autotest] DedupingScheduler.GetHosts() should return results

We missed a return statement in GetHosts(), meaning it would always
return None.  Whoops.

BUG=chromium-os:32459
TEST=unit
TEST=use suite_scheduler to force a new_build event on an R22 build.  it should schedule suites.
STATUS=Fixed

Change-Id: I8792c17a3a99d43d78dd6ffbb8b7307a210fdc8b
Reviewed-on: https://gerrit.chromium.org/gerrit/27093
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Update test_scheduler.

Change all configs to point to the shorter platform name in the json config
files.

Update test_scheduler to always add a pool:suites to the job being created so
that we do not use machines with the same platform label in a different pool.
(Like the bvt machines).

TEST=validate_json_files and test_scheduler --verbose run with job creation/
validation
BUG=chromium-os:32449

Change-Id: I6f9ec2dd72741c2f3f2dd9ecbd9b366d7a76b45f
Reviewed-on: https://gerrit.chromium.org/gerrit/27092
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Linksys-E2000 configurator

BUG=None
TEST=None

Change-Id: Idfa02d4132a8d43a396b2bd1b5b109cbaca404a3
Reviewed-on: https://gerrit.chromium.org/gerrit/26710
Reviewed-by: Kris Rambish <krisr@chromium.org>
Commit-Ready: Viral Modi <viralmodi@chromium.org>
Tested-by: Viral Modi <viralmodi@chromium.org>
[autotest] suite_scheduler: ShouldHandle() does not respect always_handle

In the suite_scheduler, we provide a mechanism for asserting that an
event should always be 'handled', for the purposes of testing.  The
code was not respecting this.

BUG=None
TEST=new unit tests
TEST=run suite_scheduler with a config that specifies always_handle: True in a [nightly_params] section; see that it schedules any suites that 'run_on nightly' every 5 minutes.

Change-Id: I2403636a1790ca76c57ad29404d7b136eb46436f
Reviewed-on: https://gerrit.chromium.org/gerrit/27170
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
[autotest] run_suite.py should handle per-host try_new_image job names.

This CL splits the test name on '-' before doing so on '.'
This allows us to handle test names of the format 'try_new_image-hostname.cros'

BUG=chromium-os:32445
TEST=run_suite.py -m <suite job id>, using a job id where reimaging failed. Links should be printed that point to the reimaging job, not the over-arching suite job

Change-Id: Id4c51ace338fed1fe49e2d096bf4295014ad305c
Reviewed-on: https://gerrit.chromium.org/gerrit/27171
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>