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

Issue 3341024: Add Python tests for build_image script (Closed)

Created:
10 years, 3 months ago by Tan Gao
Modified:
9 years, 7 months ago
Reviewers:
kliegs, davidjames, sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Add Python tests for build_image script Change-Id: I95bb4518bbfa2931407a90180686845fd9e928e5 BUG=chromium-os:6574 TEST=manually run test script and verified all 4 test cases passed

Patch Set 1 #

Total comments: 47

Patch Set 2 : refactor/rewrite per review feedback #

Patch Set 3 : use new return object from RunCommand #

Total comments: 8

Patch Set 4 : rename functions to gpylint, minor fixes per review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -0 lines) Patch
A chromite/tests/build_image_test.py View 1 2 3 1 chunk +200 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Tan Gao
10 years, 3 months ago (2010-09-09 17:09:37 UTC) #1
davidjames
http://codereview.chromium.org/3341024/diff/1/2 File chromite/tests/build_image_test.py (right): http://codereview.chromium.org/3341024/diff/1/2#newcode33 chromite/tests/build_image_test.py:33: if os.path.exists('/etc/debian_chroot'): Can we use a different file to ...
10 years, 3 months ago (2010-09-09 17:17:42 UTC) #2
kliegs
http://codereview.chromium.org/3341024/diff/1/2 File chromite/tests/build_image_test.py (right): http://codereview.chromium.org/3341024/diff/1/2#newcode33 chromite/tests/build_image_test.py:33: if os.path.exists('/etc/debian_chroot'): On 2010/09/09 17:17:42, davidjames wrote: > Can ...
10 years, 3 months ago (2010-09-09 17:35:20 UTC) #3
sosa
http://codereview.chromium.org/3341024/diff/1/2 File chromite/tests/build_image_test.py (right): http://codereview.chromium.org/3341024/diff/1/2#newcode32 chromite/tests/build_image_test.py:32: """Returns True if we are inside chroot.""" You may ...
10 years, 3 months ago (2010-09-09 17:43:24 UTC) #4
Tan Gao
Thanks for the thorough review, guys!! I'll start a separate CL to patch RunCommand so ...
10 years, 3 months ago (2010-09-09 21:59:17 UTC) #5
Tan Gao
CL updated w/ latest RunCommand change (return an object). PTAL thx!
10 years, 3 months ago (2010-09-10 22:46:28 UTC) #6
davidjames
Could you update this CL to pass gpylint? gpylint requires that functions AreCapitalizedLikeThis. Otherwise, LGTM. ...
10 years, 3 months ago (2010-09-10 22:54:55 UTC) #7
sosa
some nits http://codereview.chromium.org/3341024/diff/11001/12001 File chromite/tests/build_image_test.py (right): http://codereview.chromium.org/3341024/diff/11001/12001#newcode34 chromite/tests/build_image_test.py:34: def is_inside_chroot(): Not sure what happened but ...
10 years, 3 months ago (2010-09-10 22:57:18 UTC) #8
Tan Gao
http://codereview.chromium.org/3341024/diff/11001/12001 File chromite/tests/build_image_test.py (right): http://codereview.chromium.org/3341024/diff/11001/12001#newcode34 chromite/tests/build_image_test.py:34: def is_inside_chroot(): not an accident.. I followed pylint rules ...
10 years, 3 months ago (2010-09-10 23:25:31 UTC) #9
sosa
10 years, 3 months ago (2010-09-10 23:30:16 UTC) #10
lgtm!

Powered by Google App Engine
This is Rietveld 408576698