Commit Graph

15 Commits

Author SHA1 Message Date
Kris Rambish
51d4faa68b This script is only used in manual testing. It can't break the tree.
Revert "Revert "Run setup_test_links in both deps""

This reverts commit 3ace2951e3129e39ef76b534e1b68598a3c075d3

Change-Id: I5bc509a70366282733f9b337620e92846cd6ad4c
Reviewed-on: https://gerrit.chromium.org/gerrit/26962
Reviewed-by: Craig Harrison <craigdh@chromium.org>
Commit-Ready: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
2012-07-09 16:01:52 -07:00
Tom Wai-Hong Tam
ccf8f9590d Revert "Run setup_test_links in both deps"
This reverts commit 0f9fad45831ee5a7dfcf2b1fef9f9bb4cf6f3465

I guess it caused the tree broken. There is a VMTest failure that can't find the pyauto_dep package file. Only this CL changed the pyauto_dep thing recently.

http://build.chromium.org/p/chromiumos/builders/amd64%20generic%20full/builds/3380

I can't ping the authors. So revert this CL first.

Change-Id: I3ace2951e3129e39ef76b534e1b68598a3c075d3
Reviewed-on: https://gerrit.chromium.org/gerrit/26651
Reviewed-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
2012-07-02 22:04:52 -07:00
Kris Rambish
e1b6bffcb6 Run setup_test_links in both deps
TEST=Ran it
BUG=None

Change-Id: I8aca7639ca3461c3f108e6faf60111ce4ed5b4af
Reviewed-on: https://gerrit.chromium.org/gerrit/26631
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
2012-07-02 18:24:53 -07:00
Kris Rambish
f47611a771 Fix for new (or lack of) locations of pyauto deps.
BUG=chromium-os:31306
TEST=Ran it!

Change-Id: I7a71fcba8504b84c055ba076d8bbceefc0ab45c8
Reviewed-on: https://gerrit.chromium.org/gerrit/24251
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Commit-Ready: Kris Rambish <krisr@chromium.org>
2012-05-31 17:26:15 -07:00
Brian Harring
7f175a59e1 common.sh: output a backtrace and debug information on failure.
Currently, if set -e spots a nonzero exit we basically have
no real debug information- it just stops immediately without stating
where or why.  This forces our scripts to be stupidly verbose so
we can track roughly where they were, thus when they fail we can
use that information to localize the rough exit point.

Instead we should be traping that set -e induced exit and
outputing necessary debug information to run it down.  This includes
outputing the relevant stack trace, or at least what we can get of
it.

The 'die' function is now enhanced to automatically dump the trace
that lead to it.  For most consumers this is desired- however for
commandline parsing induced dies ("--board is missing" for example),
the trace is noise.  For those cases, a 'die_notrace' function was
added that retains the original non-backtrace behaviour.

Example output via instrumenting cros_generate_breakpad_symbols
w/ the failing command '/bin/false' (nonzero exit code).

Before:
./cros_generate_breakpad_symbols  monkeys --board=x86-alex
<no output at all, just exit code 1>

With this CL:
./cros_generate_breakpad_symbols  monkeys --board=x86-alex
ERROR   : script called: ./cros_generate_breakpad_symbols 'monkeys' '--board=x86-alex'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :   file cros_generate_breakpad_symbols, line 207, called: main 'monkeys' '--board=x86-alex'
ERROR   :   file cros_generate_breakpad_symbols, line 163, called: die_err_trap '/bin/false' '1'
ERROR   :
ERROR   : Command failed:
ERROR   :   Command '/bin/false' exited with nonzero code: 1

BUG=chromium-os:30598
TEST=inject a failing command into a script, verify the output.
TEST=inject a 'command not found', verify the output
TEST=cbuildbot x86-generic-full --remote
TEST=cbuildbot arm-tegra2-full --remote
TEST=cbuildbot chromiumos-sdk --remote

Change-Id: I517ffde4d1bb7e2310a74f5a6455b53ba2dea86c
Reviewed-on: https://gerrit.chromium.org/gerrit/17225
Reviewed-by: Brian Harring <ferringb@chromium.org>
Tested-by: Brian Harring <ferringb@chromium.org>
Commit-Ready: Brian Harring <ferringb@chromium.org>
2012-05-07 17:19:41 -07:00
Brian Harring
aa13ea4658 Shift crosutils scripts to use the common.sh they were written against.
Rather than trying to use an old/stale common.sh, use the common.sh
from the invocation point- if invoked via /usr/lib/crosutils, use that
common.sh.  If invoked via src/scripts/, use that, etc.

Trying to intermix it just introduces potential for bugs and invalidly
freezes common.sh api, thus the efforts to revert this and ultimately
revert the existing of a crosutils ebuild.

BUG=chromium-os:27201
TEST=cbuildbot x86-generic-full

Change-Id: I4c6c5fbade3d28c71752bd4c44dccad49af52ec0
Reviewed-on: https://gerrit.chromium.org/gerrit/18303
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Brian Harring <ferringb@chromium.org>
Tested-by: Brian Harring <ferringb@chromium.org>
2012-03-15 23:35:06 -07:00
Kris Rambish
51f9606168 Update script to not copy non-pyauto parts.
The size of what is in the chrome_dep has increased to a size that is
too large to fit into the 1GB stateful partition map of the test image.

TEST=Ran it!
BUG=None

Change-Id: Ic9dcfa143ebb52beb1eb9533a63c6e9d851e57bc
Reviewed-on: https://gerrit.chromium.org/gerrit/18065
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
Commit-Ready: Kris Rambish <krisr@chromium.org>
2012-03-13 18:02:17 -07:00
Kris Rambish
d1b808a6ae Fix comments
TEST=None
BUG=chromium-os:22069

Change-Id: I1f92395a2839ac7d6178598d76161334e00812b0
Reviewed-on: http://gerrit.chromium.org/gerrit/10672
Commit-Ready: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
2011-10-25 14:38:29 -07:00
Kris Rambish
1c165c055b Make the autotest sub dir world readable
TEST=Ran it
BUG=chromium-os:22069
STATUS=Fixed

Change-Id: Id6e96e5602c02956b6a1592ff54ad60935e1620e
Reviewed-on: http://gerrit.chromium.org/gerrit/10660
Commit-Ready: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
2011-10-25 13:08:26 -07:00
Kris Rambish
9d8477cbd7 Replace the chronos user with 1000
BUG=chromium-os:21542
TEST=Ran it

Change-Id: Idca77b20c119b9995218b990f9fb5accd7cfa580
Reviewed-on: http://gerrit.chromium.org/gerrit/9879
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
Commit-Ready: Kris Rambish <krisr@chromium.org>
Commit-Ready: Stanley Wong <stanleyw@chromium.org>
2011-10-11 14:46:07 -07:00
Kris Rambish
4d290ef5a4 Evaluate full paths for image and build_root
BUG=chromium-os:19854
TEST=Ran it
STATUS=Verified

Change-Id: I2fd7d77145e3607c29cfc64500fca8525e9b5992
Reviewed-on: http://gerrit.chromium.org/gerrit/6939
Reviewed-by: Kris Rambish <krisr@chromium.org>
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
Tested-by: Stanley Wong <stanleyw@chromium.org>
2011-08-30 16:50:42 -07:00
Kris Rambish
8591b508bf Add more help when vboot doesn't exist
TEST=Ran it
STATUS=Verified
BUG=chromium-os:19850

Change-Id: I2628cf0e4750f1dfff566cfe105af8672bce81f1
Reviewed-on: http://gerrit.chromium.org/gerrit/6928
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Stanley Wong <stanleyw@chromium.org>
2011-08-30 14:39:22 -07:00
Kris Rambish
8e5634c34b Copy pyauto_function.py in scrub.
BUG=chromium-os:19748
STATUS=Fixed
TEST=Ran it

Change-Id: Id71df8fe568dd1016e657e89fb942f2bbd319500
Reviewed-on: http://gerrit.chromium.org/gerrit/6803
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
2011-08-26 18:37:09 -07:00
Kris Rambish
de42359b74 Use vboot for signing
TEST=Ran it
BUG=chromium-os:18449
STATUS=Fixed

Change-Id: Ic09abe2b409f7da3b16eec0efb233063c9c5c178
Reviewed-on: http://gerrit.chromium.org/gerrit/5367
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
2011-08-08 15:19:34 -07:00
Kris Rambish
09e87bca4f Add a new script to add pyauto to test images
BUG=chromium-os:16876
TEST=Ran it
STATUS=Fixed

Change-Id: I4b9391371686d304d84528d1959adfff1a1d8e6c
Reviewed-on: http://gerrit.chromium.org/gerrit/4868
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Kris Rambish <krisr@chromium.org>
2011-07-28 11:48:55 -07:00