Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 6425002: devserver: allow calling devserver from anywhere (Closed)

Created:
9 years, 10 months ago by zbehan
Modified:
9 years, 7 months ago
Reviewers:
sosa, robotboy, anush
CC:
chromium-os-reviews_chromium.org, Nick Sanders, ericli, DaleCurtis
Visibility:
Public.

Description

devserver: allow calling devserver from anywhere Change-Id: I5b1eaf2d2d2bc1ee51d0ff676e2a64abc98b1322 BUG=5246 TEST=below 1) Modified unittests to run from / 2) Ran unit tests before the change and saw the fail 3) Ran unit tests after the change and saw them succeed 4) sudo FEATURES=test ACCEPT_KEYWORDS=~amd64 emerge cros-devutils (see things installed and unittests passing) Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=1347a31

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M devserver.py View 1 chunk +2 lines, -1 line 0 comments Download
M devserver_test.py View 1 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
zbehan
9 years, 10 months ago (2011-02-08 06:30:31 UTC) #1
sosa
your TEST= stanza isn't really sufficient for this change. Can you start devserver and try ...
9 years, 10 months ago (2011-02-08 19:49:47 UTC) #2
sosa
your TEST= stanza isn't really sufficient for this change. Can you start devserver and try ...
9 years, 10 months ago (2011-02-08 19:49:48 UTC) #3
zbehan
Isn't that exactly what devserver_test.py already does? I didn't explore it very thoroughly but I ...
9 years, 10 months ago (2011-02-08 20:32:23 UTC) #4
sosa
It's path specific so a script that calls it from a weird location might be ...
9 years, 10 months ago (2011-02-08 20:36:02 UTC) #5
zbehan
9 years, 10 months ago (2011-02-10 02:21:48 UTC) #6
zbehan
Okay, I've modified the test to run in / and call everything using absolute paths. ...
9 years, 10 months ago (2011-02-10 02:24:36 UTC) #7
sosa
LGTM thanks. Make sure to watch the pfq after you commit this and make sure ...
9 years, 10 months ago (2011-02-10 02:55:23 UTC) #8
zbehan
Does the PFQ depend on devserver in some way? (just wondering) On Thu, Feb 10, ...
9 years, 10 months ago (2011-02-10 02:57:09 UTC) #9
sosa
Yup ... it runs an update test using the devserver. On Wed, Feb 9, 2011 ...
9 years, 10 months ago (2011-02-10 02:59:47 UTC) #10
sosa
INFO: PROGRAM(cbuildbot) -> RunCommand: ['bin/cros_au_test_harness', '--no_graphics', '--no_delta', '--board=x86-generic', '--test_prefix=SimpleTest', '--verbose', '--base_image=/b/cbuild/src/build/images/x86-generic/latest/chromiumos_test_image.bin', '--target_image=/b/cbuild/src/build/images/x86-generic/latest/chromiumos_test_image.bin'] in dir /b/cbuild/src/scripts ...
9 years, 10 months ago (2011-02-10 03:00:51 UTC) #11
zbehan
Awesome. Unrelated, but I think we should enable FEATURES=test by default, and make more ebuilds ...
9 years, 10 months ago (2011-02-10 03:02:24 UTC) #12
zbehan
Awesome. Unrelated, but I think we should enable FEATURES=test by default, and make more ebuilds ...
9 years, 10 months ago (2011-02-10 03:03:12 UTC) #13
sosa
We run with FEATURES=test on all chromeos-base ebuilds using cros_run_unit_tests already. We don't set it ...
9 years, 10 months ago (2011-02-10 03:10:47 UTC) #14
zbehan
9 years, 10 months ago (2011-02-10 03:43:00 UTC) #15
PFQ passed, so at least the original case of running from ./ remains
unbroken.

Next stop: Making all scripts run the version from chroot.

On Thu, Feb 10, 2011 at 4:10 AM, Chris Sosa <sosa@chromium.org> wrote:

> We run with FEATURES=test on all chromeos-base ebuilds using
> cros_run_unit_tests already.  We don't set it in build_packages
> because many portage packages fail to compile with FEATURES=test and
> its recursive.
>
> On Wed, Feb 9, 2011 at 7:02 PM, Zdenek Behan <zbehan@chromium.org> wrote:
> > Awesome.
> > Unrelated, but I think we should enable FEATURES=test by default, and
> make
> > more ebuilds use their test suites.
> >
> > On Thu, Feb 10, 2011 at 4:00 AM, Chris Sosa <sosa@chromium.org> wrote:
> >>
> >> INFO: PROGRAM(cbuildbot) -> RunCommand: ['bin/cros_au_test_harness',
> >> '--no_graphics', '--no_delta', '--board=x86-generic',
> >> '--test_prefix=SimpleTest', '--verbose',
> >>
> >>
>
'--base_image=/b/cbuild/src/build/images/x86-generic/latest/chromiumos_test_image.bin',
> >>
> >>
>
'--target_image=/b/cbuild/src/build/images/x86-generic/latest/chromiumos_test_image.bin']
> >> in dir /b/cbuild/src/scripts
> >>
> >> This in turn calls cros_run_vm_update -> image_to_live -> starts a dev
> >> server.
> >>
> >>
> >> On Wed, Feb 9, 2011 at 6:59 PM, Chris Sosa <sosa@chromium.org> wrote:
> >> > Yup ... it runs an update test using the devserver.
> >> >
> >> > On Wed, Feb 9, 2011 at 6:57 PM, Zdenek Behan <zbehan@chromium.org>
> >> > wrote:
> >> >> Does the PFQ depend on devserver in some way? (just wondering)
> >> >>
> >> >> On Thu, Feb 10, 2011 at 3:55 AM, <sosa@chromium.org> wrote:
> >> >>>
> >> >>> LGTM thanks.  Make sure to watch the pfq after you commit this and
> >> >>> make
> >> >>> sure it
> >> >>> passes.
> >> >>>
> >> >>> http://codereview.chromium.org/6425002/
> >> >>
> >> >>
> >> >
> >
> >
>

Powered by Google App Engine
This is Rietveld 408576698