Commit Graph

4103 Commits

Author SHA1 Message Date
Darin Petkov
96a4f21ee3 Color by default only if TTY stdout. Recurse into results directories.
Review URL: http://codereview.chromium.org/1756017
2010-04-29 09:51:42 -07:00
Tom Wai-Hong Tam
bf772cffaa Skip dropping caches in each test and between iterations during factory tests.
Dropping caches (writing back all dirty pages to disk and clearing all the caches) is not necessary for factory tests. It can reduce the latency significantly. The scale is about 27s -> 3s, for running 2 empty tests.

Review URL: http://codereview.chromium.org/1780011
2010-04-29 14:57:37 +08:00
Anton (whywhat) Vayvod
9ffc3b32a3 Added --test_args parameter that passes its value as -a flag to autoserv.
Review URL: http://codereview.chromium.org/1794004
2010-04-28 21:51:16 +04:00
Tom Wai-Hong Tam
d036780bd1 Make modify-image-for-factory scripts more readable.
Review URL: http://codereview.chromium.org/1755012
2010-04-28 18:50:02 +08:00
Chris Sosa
48768d8763 TBR: Missed last commit for image_to_live in last push 2010-04-27 15:48:09 -07:00
David McMahon
9cc8f95a65 Don't assume this is run from the chroot and point explicity to it.
Add an echo to report the action from that part of the script.

Review URL: http://codereview.chromium.org/1699015
2010-04-27 13:49:06 -07:00
Chris Sosa
ef96430135 Changes to image_to_live to copy stateful partition over
Review URL: http://codereview.chromium.org/1784006
2010-04-27 13:21:08 -07:00
Chris Masone
86e28fd1d9 Generate testing certs on the fly
Review URL: http://codereview.chromium.org/1701016
2010-04-27 11:06:12 -07:00
Bill Richardson
041bd71932 Add more choices to grub2 menu.
This adds some '/dev/sdb' options to the grub2 menu, so that we can keep the
default boot partition /dev/sda3 while still using the USB key as a recovery
image. This is work in progress for EFI BIOS development.

Review URL: http://codereview.chromium.org/1706014
2010-04-27 09:36:14 -07:00
robotboy
152a1ab50d Add a bind mount of /dev to the chroot.
This is useful for various JTAG and fastboot based flashing of
targets.  It is also useful in that we will now have access to
USB card readers and mass storage devices inside the chroot.

BUG=None
TEST=Enter and exit the chroot cleanly.

Review URL: http://codereview.chromium.org/1711016
2010-04-26 14:07:27 -07:00
Daniel Erat
dd9818aaad build: Get rid of scary /dev/sdb defaults in scripts.
Choosing a default device is no good; the user should
tell us where the image should be written.

BUG=none
TEST=wrote an image

Review URL: http://codereview.chromium.org/1730012
2010-04-26 09:16:44 -07:00
Daniel Erat
89b029c7c0 build: Re-hide pointless question in image_to_usb.sh --test_image.
Undoes a change from 5c3b457f.  Hardcoding "--yes" in the
call to mod_image_for_test.sh instead of inheriting
image_to_usb.sh's "yes" was intentional.  The user may not
pass --yes to image_to_usb.sh since they want to confirm
that they're writing to the correct device, but they already
told us that they want the image to be modified for test
with --test_image, so there's no reason to ask about it
again.

BUG=none
TEST=ran it

Review URL: http://codereview.chromium.org/1736005
2010-04-22 13:59:07 -07:00
Ken Mixter
565b11316a Support grabbing gpt-style images from buildbot
Review URL: http://codereview.chromium.org/1716003
2010-04-21 17:50:33 -07:00
Chris Sosa
6975c665d8 Only cache sudo if outside chroot
Review URL: http://codereview.chromium.org/1709005
2010-04-21 15:39:02 -07:00
robotboy
32ddb4282f Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1747005
2010-04-21 14:46:00 -07:00
Nasser Grainawi
cb5f3ebe52 Retry N-1 times with the --jobs flag, then drop it
Review URL: http://codereview.chromium.org/1545043
Patch from Nasser Grainawi <nasserg@quicinc.com>.
2010-04-21 08:46:49 -06:00
Yusuke Sato
e5b9621b89 Revert "Only search for the gpt tool if we need it."
This reverts commit c8f8d220a2cdb3cd5b464859de38c8504403e6d1.
2010-04-21 10:46:59 +09:00
David McMahon
e707c1d4e7 Fix name of test image from autotest archive.
Review URL: http://codereview.chromium.org/1711005
2010-04-20 18:03:51 -07:00
robotboy
3e9204c315 Only search for the gpt tool if we need it.
Review URL: http://codereview.chromium.org/1604041
2010-04-20 17:17:03 -07:00
Andrew de los Reyes
ba9af725d1 tracker/spreadsheet tool: Improve tracker to spreadsheet migration.
Migrate only issues that are open or that are already in the
spreadsheet. This way, the spreadsheet doesn't get cluttered w/ closed
tasks.

Review URL: http://codereview.chromium.org/1734001
2010-04-20 16:28:37 -07:00
Chris Sosa
fb78b42940 New helper script to mount (and umount) gpt image into image_dir/rootfs and mount /var, /usr/local
Review URL: http://codereview.chromium.org/1648018
2010-04-19 14:56:18 -07:00
Chris Masone
127c3bfa2b Add testing root certs to an nssdb on the rootfs.
After discussing with drewry, we can't come up with a better way to inject these root certs.  We considered putting them on the stateful partition, but that opens up an avenue of attack (if you can get a root cert into the magic directory, then you can MITM login).  Thus, we put it on the rootfs instead.  The script that sets up the hashes for vboot will verify that this directory is not present in production images.  That work is tracked here: http://code.google.com/p/chromium-os/issues/detail?id=2693

Review URL: http://codereview.chromium.org/1566055
2010-04-19 14:26:14 -07:00
Nick Sanders
3c8023380e Allow boot directly into mfg test.
Add feature to mod_image_for_test to patch rootfs.
Change initctl path to get network but no chrome.
./image_to_usb.sh --install_mfg --install_autotest --test_image
which calls ./mod_image_for_test.sh --manuf

Review URL: http://codereview.chromium.org/1542011
2010-04-16 19:53:55 -07:00
David McMahon
acee63274c Created branch release_40. Update CHROMEOS_VERSION_BRANCH=41 2010-04-16 15:20:51 -07:00
Sean O'Connor
d41bbf4fd5 devserver support for update images from buildbot.
Remove implicit sudo from gpt partition packing scripts.

Misc cleanup and fixes included.

Review URL: http://codereview.chromium.org/1633018
2010-04-16 13:50:40 -07:00
Ken Mixter
d5c4b17da5 Revert "Retry on build_image failures and make sbt more aggressive by default"
This reverts commit 7c3272657eb2e3a106090c5ab57f16ba5ba21ffe.

Review URL: http://codereview.chromium.org/1594035
2010-04-16 10:11:02 -07:00
Ken Mixter
c223ba1e0c Retry on build_image failures and make sbt more aggressive by default
As with build_packages, only retries by default if you passed --jobs
even though build_image will indeed spuriously fail with only one job.
sync_build_test now uses jobs=#cores by default for both package and
image building.  Eventually will also use this for gclient sync'ing
once that is better vetted.

Review URL: http://codereview.chromium.org/1564035
2010-04-16 09:08:26 -07:00
Mike Truty
c5f1d31034 Add ssh cleanup to avoid leaving running agents around when imaging problems.
Review URL: http://codereview.chromium.org/1609025
2010-04-14 16:11:22 -07:00
Darin Petkov
835ea28436 Add generate_test_report to the hwqual package.
Will remove it from the autotest repo in a separate CL.

Review URL: http://codereview.chromium.org/1576035
2010-04-14 12:58:20 -07:00
Chris Sosa
3d9a10b393 Fix install mask and move dev_mode to true when dev packages are installed
Review URL: http://codereview.chromium.org/1553028
2010-04-13 15:00:46 -07:00
Andrew de los Reyes
23fbe7dde4 Tracker/Spreadsheet sync: tool to sync tracker issues
This can be useful for working with issues in a spreadsheet and making
bulk updates to tracker issues.

See known issues in the file for important known issues.

Review URL: http://codereview.chromium.org/1566037
2010-04-13 13:32:03 -07:00
Eric Li
ac2de13847 Refine image_to_live script to log all output from devserver.
Review URL: http://codereview.chromium.org/1572034
2010-04-13 13:19:08 -07:00
Bill Richardson
ba9682ac08 Change default grub.cfg to support fast-boot from EFI BIOS
Review URL: http://codereview.chromium.org/1518025
2010-04-13 13:02:32 -07:00
Eric Li
740d837451 Add iperf and netpipe into autotest prebuild test lists.
Now they should be built for both x86 and arm board.

Review URL: http://codereview.chromium.org/1621006
2010-04-13 10:07:15 -07:00
David McMahon
a2a9a2b5a8 Update CHROMEOS_VERSION_MINOR=7, Post R6.
Review URL: http://codereview.chromium.org/1645002
2010-04-12 18:22:56 -07:00
Jie Sun
5ade331b45 add install to arm platform
now we could install to mmcblk0.
for vogue, we even change the uboot environment.
on Samsung, you had to use 'chromeos-install --skip_src_removable' because mmcblk1 is not removable somehow.

Review URL: http://codereview.chromium.org/1618013
2010-04-12 17:04:36 -07:00
Chris Sosa
3ccf7410ea Add local dir's to path. SSH and SU respect paths in etc environment
Review URL: http://codereview.chromium.org/1650001
2010-04-12 16:00:17 -07:00
robotboy
9891221b6e Add a safe_unmount function and use it in enter_chroot.
The safe_unmount function first tries a regular unmount,  If that
fails it warns and tries a lazy unmount.  If the lazy unmount fails
it dies.

Both unmounts take the -d option in case the mount is a loop device.

BUG=None
TEST=Entered and exited multiple chroots

Review URL: http://codereview.chromium.org/1593021
2010-04-12 14:08:14 -07:00
David McMahon
ad9c20327d Run hwqual on test_mod=true as it has dependencies on test_mod=true.
Review URL: http://codereview.chromium.org/1553025
2010-04-12 12:21:35 -07:00
tedbo
373c3903c2 Add sudo_clobber and sudo_append functions so that we can "echo"
and "cat" stuff and pipe it to something that can write to a
file as root. For example:

echo "foo" | sudo_append /tmp/bar

will append "foo" to the file /tmp/bar as root. While

echo "foo" | sudo_clobber /tmp/bar

will truncate /tmp/bar and then write "foo" to the file.

Review URL: http://codereview.chromium.org/1610021
2010-04-12 10:52:40 -07:00
Chris Masone
30fa208c87 Tool for mounting USB sticks formatted with --statefuldev
sosa@'s statefuldev change, which installs all developer packages on
the stateful partition and has put /var there as well, means that we
can no longer just mount the rootfs on a usb stick and emerge packages
onto/off of the removeable device.  We now need to mount the stateful
partition as well, and also bindmount from /var on the rootfs to /var
on the stateful partition.  All portage state is stored there, among
other things.

Review URL: http://codereview.chromium.org/1644001
2010-04-12 08:59:05 -07:00
Eric Li
36e192758f Pass chroot flag into enter_chroot.
This is something missing from the original run_remote_tests script.

Review URL: http://codereview.chromium.org/1589022
2010-04-10 11:58:43 -07:00
Daniel Erat
35aa57a305 build: Suppress stupid question in image_to_usb.sh.
No point in asking the user if they're sure they want
to modify the image for testing when they asked us to
modify it for testing in the first place.

BUG=none
TEST=tried it

Review URL: http://codereview.chromium.org/1520031
2010-04-09 18:51:08 -07:00
Andrew de los Reyes
8d94f49f0d New Full AU Format w/ support for kernel partition.
The old format was: gzip(root filesystem). The new format is:
gzip(kernel parition length + kernel partition + root filesystem). The
length is 8 bytes (uint64 big endian).

This CL fixes the updater and the update generator to support the new
format.

Review URL: http://codereview.chromium.org/1520028
2010-04-09 16:07:37 -07:00
Jie Sun
96e2b09b24 current mkimage are build in u-boot package and copied to sys-root ( a x86 binary).
move mkimage to hard-host-depends and remove dependency from u-boot to kernel.
this will make use of mkimage on target possible in the future.

Review URL: http://codereview.chromium.org/1613008
2010-04-09 11:05:49 -07:00
Bill Richardson
a81df76a06 Replace "mount -o loop" with explict losetup use in build_image.
This fixes the loop device leak. The problem is that inside the chroot, we
have /etc/mtab as a symlink to /proc/mounts. That works most of the time,
but if you mount something using "-o loop", it isn't cleaned up correctly
when you umount it. To avoid that, we either have to replace the /etc/mtab
symlink with an empty file when we create the chroot, or we have to make
sure that we never execute a "mount -o loop" command from within the chroot.
If we use an empty /etc/mtab file, the builds work fine, but then we can't
see any mounted partitions that the host creates outside the chroot (such as
USB keys), which causes other problems. Bleah.

Review URL: http://codereview.chromium.org/1594020
2010-04-09 08:12:05 -07:00
Chris Sosa
1e5fe62f92 Fix build image
Review URL: http://codereview.chromium.org/1622015
2010-04-08 20:51:53 -07:00
Chris Masone
b9f7230dcd Fix permissions on fake root cert that is injected for login testing. It was getting 0600
Review URL: http://codereview.chromium.org/1626007
2010-04-08 16:05:32 -07:00
Andrew de los Reyes
e7a04adc83 Factory Installer.
Change build_image to support building a factory install image. Also,
a shell script and startup script to run the factory installer.

Change software_update startup script to detect if it's a factory
install and abort if so.

BUG=2378,2379,2380
TEST=Tested factory install worked on device.
Wrapper script to perform factory install at boot.

AU: New arg to install on non-boot device partition. This is used to
install in the factory. Also, switch to shflags for argument parsing.

Review URL: http://codereview.chromium.org/1556022
2010-04-08 15:58:17 -07:00
Chris Sosa
503efe1f65 Add /usr/local/lib to readlibs for test_image and move ldconfig higher for sful
Review URL: http://codereview.chromium.org/1618007
2010-04-08 10:05:46 -07:00