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

Issue 3536018: Fixes for cbuild to work with ctest. (Closed)

Created:
10 years, 2 months ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
petkov, kmixter
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Fixes for cbuild to work with ctest. 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. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=020aa69

Patch Set 1 #

Patch Set 2 : Remove changes to archive build #

Patch Set 3 : Clean up ws #

Patch Set 4 : Fix some non-functional problems #

Patch Set 5 : Better print statement #

Total comments: 7

Patch Set 6 : Fix bugs #

Total comments: 8

Patch Set 7 : Fixes for petkov #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -38 lines) Patch
M bin/cros_au_test_harness.py View 1 2 3 4 5 6 10 chunks +108 lines, -31 lines 0 comments Download
M bin/ctest.py View 1 2 3 4 5 4 chunks +25 lines, -5 lines 0 comments Download
M image_to_live.sh View 1 chunk +2 lines, -0 lines 0 comments Download
M image_to_vm.sh View 1 chunk +1 line, -1 line 0 comments Download
M run_remote_tests.sh View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
sosa
petkov - for core of review kmixter - run_remote_tests.sh -- not a big change as ...
10 years, 2 months ago (2010-10-08 05:48:58 UTC) #1
petkov
http://codereview.chromium.org/3536018/diff/8001/9001 File bin/cros_au_test_harness.py (right): http://codereview.chromium.org/3536018/diff/8001/9001#newcode14 bin/cros_au_test_harness.py:14: from cros_build_lib import ReinterpretPathForChroot sort these? http://codereview.chromium.org/3536018/diff/8001/9001#newcode49 bin/cros_au_test_harness.py:49: def ...
10 years, 2 months ago (2010-10-08 06:31:58 UTC) #2
sosa
PTAL. I've fixed all the bugs I introduced in the last patch. I also passed ...
10 years, 2 months ago (2010-10-08 22:28:29 UTC) #3
petkov
LGTM w/ a couple of suggestions http://codereview.chromium.org/3536018/diff/12001/13001 File bin/cros_au_test_harness.py (right): http://codereview.chromium.org/3536018/diff/12001/13001#newcode60 bin/cros_au_test_harness.py:60: Info('Percent of tests ...
10 years, 2 months ago (2010-10-08 23:01:03 UTC) #4
sosa
10 years, 2 months ago (2010-10-08 23:36:06 UTC) #5
Thanks for reviewing.  Pushing.

http://codereview.chromium.org/3536018/diff/12001/13001
File bin/cros_au_test_harness.py (right):

http://codereview.chromium.org/3536018/diff/12001/13001#newcode60
bin/cros_au_test_harness.py:60: Info('Percent of tests passed %s' %
str(percent_passed))
On 2010/10/08 23:01:04, petkov wrote:
> do you really need str() here?
> 

Done.

http://codereview.chromium.org/3536018/diff/12001/13001#newcode111
bin/cros_au_test_harness.py:111: print output
On 2010/10/08 23:01:04, petkov wrote:
> is this a debug leftover?
> 
No ... see the Info msg above.

http://codereview.chromium.org/3536018/diff/12001/13001#newcode128
bin/cros_au_test_harness.py:128: percent_passed = self.VerifyImage(10)
On 2010/10/08 23:01:04, petkov wrote:
> bump this up and add a TODO for the right fix as discussed
> 

Done.

http://codereview.chromium.org/3536018/diff/12001/13001#newcode151
bin/cros_au_test_harness.py:151: percent_passed = self.VerifyImage(10)
On 2010/10/08 23:01:04, petkov wrote:
> increase and a TODO
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698