For run_remote_tests this required "fixing" restart_in_chroot if required. Right now that script ->only<- works if its run on a scripts being called from src/scripts. This change makes it more generic by doing this for any script called from within our source tree.
I borrow reinterpret_path_for_chroot from image_to_live. Other CL to remove it from there.
Change-Id: If717beccd777ac178366d58b91521b9a62d55d85
BUG=chromium-os:11172
TEST=Ran them
Review URL: http://codereview.chromium.org/6730012
The one symlink should be update instead of new links being created.
BUG=12233
TEST=Ran run_remote_test.sh many time and verified that the link is updated.
Change-Id: I63f325e03439e5c922e9fe2300444193146182f9
Review URL: http://codereview.chromium.org/6576051
If no board is specified for run remote tests,
learn board from device under test instead of using
default board.
BUG=none
TEST= ./run_remote_tests.sh without --board. Verify detects board and
deploys appropriate version for that board.
./run_remote_test.sh with --board x86-mario. Verify that it deploys
that specific board, regardless of target.
Change-Id: I6e71f0f1bf4b2bcfcd3430b29adc16531c6a8c81
Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Chris Sosa <sosa@chromium.org>
Review URL: http://codereview.chromium.org/6580017
Having this symlink is extremely useful if your running the same
test over and over again.
BUG=n0ne
TEST=Verified that the symlink is there.
Change-Id: I625a48ce4348082db05951ffd67929687ad461cc
Review URL: http://codereview.chromium.org/6543021
BUG=11507
TEST=Ran run_remote_test.sh and verified that the following is printed:
INFO : Detected cros_workon autotests. Building and running your autotests from /home/msb/trunk/src/third_party/autotest/files. To use emerged autotest, pass --use_emerged.
Change-Id: Ifc4305088e4edd059fad250d074347bc81a451cf
Review URL: http://codereview.chromium.org/6246141
from within the chroot.
It also fixes a number of style issues.
It changes the meaning of cros_workon "list-all" to list all available
packages, and adds "list-live" to list all live packages.
It changes things that load chromeos-common.sh from the installer to
load it from /usr/lib/installer.
BUG=chromium-os:4230
TEST=synced, rebuilt chroot, made packages, made images, built chrome
from source, and wrote an image to a USB stick.
Review URL: http://codereview.chromium.org/6240018
Change-Id: I90c34420af1a64020402bafef8e9e77f56837c02
run_remote_test.sh is implicitly depending on remote_access.sh to setup
the ssh-agent for it. This broke when I tried to remove ssh-agent starting
from remote-access.sh. Implicitly dependencies are ugly.
BUG=n0ne
TEST=Ran a test on my local machine. Tested with and without default board.
Change-Id: I50db1717cafc2565cb8bb648919430d9ce24ce80
Review URL: http://codereview.chromium.org/6333001
What I did:
1. enter_chroot once and only once if necessary. The previous version would enter/exit chroot 3 times in worst case. And the entire logic happens inside chroot only, this has greatly simplified the overall workflow, and reduced the number of variables used. Shell script variables could be tricky.
2. Change variable type to test_type since type is a bash builtin.
3. get rid of {$TMP}/run_test.sh script, since it is not necessary any more.
4. get rid of rsync step from third_party/autotest/files to ${BUILD_DIR}, since it is not neccessary either.
overall, reduced ~40 lines of code.
All the change should be transparent to end users and there should be no regression changes at all.
w/wo emerge autotest
w/wo cros_workon
in/outside of chroot.
and all its combinations.
Change-Id: I9c1532e9cb6cc0e724d4b6d870723df3e2a147ec
BUG=9291
TEST=Run storageFio test since it need prebuild test and deps.
Review URL: http://codereview.chromium.org/5176009
Change-Id: Ieaa2553612aefd6161785185350d495cbf0dad81
BUG=9291
TEST=Run storageFio test since it need prebuild test and deps.
w/wo emerge autotest
w/wo cros_workon
in/outside of chroot.
w/wo --used_emerged
w/wo --results_dir_root
and all its combinations.
Review URL: http://codereview.chromium.org/5212003
Change-Id: I1032932b696929fccf97f911c555ec5a24f589d4
BUG=9291
TEST=Run storageFio test since it need prebuild test and deps.
w/wo emerge autotest
w/wo cros_workon
in/outside of chroot.
and all its combinations.
Review URL: http://codereview.chromium.org/5188002
Add "fast" mode to run_remote_tests which causes the user to no longer need to emerge autotests before running them (even ones that require compilation.)
Change-Id: I60c1e8bfe562a787075b4f65b714e221e51934f7
BUG=8784
TEST=Ran bvts in and out of fast mode, ran UserCrash, SanAngeles, TPM, and backlight tests (which require compilation) in fast mode.
Review URL: http://codereview.chromium.org/4020004
This allows the user to specify a custom results directory root. cbuildbot can
be switched to use cros_run_parallel_vm_tests if necessary without any further
changes.
Also create parents directories for user-specified results directory roots in
run_remote_tests.
BUG=8585
TEST=./bin/cros_run_parallel_vm_tests suite_Smoke suite_Smoke \
--results_dir_root=/tmp/foo
Change-Id: I7314c1d9e74ca139eaa4bd95290866a43a3606ff
Review URL: http://codereview.chromium.org/4297003
Change-Id: If83bf22fde6259b64fdd007066b5c46c7925d120
BUG=
TEST=Run a few tests inside and outside chroot
Review URL: http://codereview.chromium.org/3790005
Autotest will not split comma separated arguments. The correct calling method for multiple arguments is to separate them by spaces and quote the whole thing. E.g., instead of:
./run_remote_tests --args arg1,arg2
It should be:
./run_remote_tests --args "arg1 arg2"
See line 140 in src/third_party/autotest/files/server/autoserv_parser.py for
confirmation.
Change-Id: I88d65c0bd144942a856c2f95371d5a55b0a3a172
BUG=
TEST=No code changes. Ran --help and --args to verify nothing dumb happened and the correctness of comment.
Review URL: http://codereview.chromium.org/3772002
1) image_to_vm aborts because e2fschk requires a terminal to
be connected in order to check whether or not you want to repair the fs. Since
we always want this to be true, set -p
2) Clean up test harness to only verify the number of tests that passed on the
base image are the same on the update back to. This is because older images
have many tests that fail. I leave 10% as a reasonable number to pass.
3) Redirect output from autotest in run_remote_tests to stderr so it gets
logged in a calling script that captures stdout.
Change-Id: If412274353683add20d136747113eb9c2bd41330
BUG=4690, 5533, 7287
TEST=Ran with internal tools for builders.
Review URL: http://codereview.chromium.org/3536018
Change-Id: I1ad0aaec6517758812bf4ba0460ab0c81a6f84cb
BUG=7357
TEST=run_remote_tests.sh ... bvt regression and then observer both bvt and regression test result
Review URL: http://codereview.chromium.org/3603012
BUG=5817
TEST=run_remote_tests --remote=$IP control shows ^...$ on all lines.
Change-Id: Ie0c4ac16493dc97044ec0bd0fd6d6e53a69c9041
Review URL: http://codereview.chromium.org/3473015
Change-Id: I8560a4400463d04b7a2441ce6fa9dc9cec834242
BUG=
TEST=run_remote_tests.sh --args='-n 10', and make sure it gets all the way into autotest_run.sh
Review URL: http://codereview.chromium.org/3402007
* stops the second-pass parsing of arguments into IFS-delimited elements
which unbreaks things like --args='-n 10'
Change-Id: If8424b5fc06e6dd5a935421a76539e7e91006c37
BUG=
TEST=run it and see the argument being passed correctly
Review URL: http://codereview.chromium.org/3422005
Change-Id: I664858ff9b931479fe2fac89a24aa3e7fce8493b
BUG=
TEST=ran rrt without ==board or default board set
Review URL: http://codereview.chromium.org/3431004
* Fixes running tests different than from the main autotest repo
* Also provides a better fix for chrome tests
Change-Id: I803ba7caa5561e3001d5627219718f471e59bb19
BUG=
TEST=
Review URL: http://codereview.chromium.org/3448002
BUG=4887
TEST=tested run_remote_tests and image_to_live still work. Ran script with machine with no crashes, as well as on a machine with a slew of powerd CHECK(false)'s.
Change-Id: Iffb6571d30d99d876f41972f92a7149a716035ee
Review URL: http://codereview.chromium.org/3276002
Change-Id: I758c93596d5cbdd6b52b9acc82f4d6e19a326c9f
BUG=5518
TEST=Tested using all the options. All tests listed in the file pass.
Review URL: http://codereview.chromium.org/3107039
* Also changes the way how "new workflow" is detected in run_remote_tests.sh
modified: autotest_run.sh
modified: run_remote_tests.sh
Review URL: http://codereview.chromium.org/3048051
* This script should replace the call to ebuild in autotest wrapper, and essentially
duplicates all the test running functions from autotest-0.0.1.ebuild
* duplicate autotest wrapper into autotest_workon to separate conversion and old functionality
* Add a hack into run_remote_tests to allow using autotest_workon instead
new file: autotest_run.sh
new file: autotest_workon
modified: run_remote_tests.sh
Review URL: http://codereview.chromium.org/2854062
Make this script's output better formatted. Better describe how
to disambiguate control files when multiple match. Get rid of
the output_file concept since it's not needed. Don't output
a results directory if there's an ambiguity.
Review URL: http://codereview.chromium.org/1090005
sync_build_test runs build_autotest that way.
archive_build bzips up the autotest artifacts.
run_remote_tests can run autotest artifacts from a prepackaged directory. Note that because build_platform is in a different repository than these other files, it's unfortunately forced to be reviewed separately in http://codereview.chromium.org/661197 and committed independently.
Review URL: http://codereview.chromium.org/660189