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

Issue 1125004: Update location of autotest files in image_to_usb, fix loopback mounting for stateful partition (Closed)

Created:
10 years, 9 months ago by Nick Sanders
Modified:
10 years, 9 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Update location of autotest files in image_to_usb, fix loopback mounting for stateful partition

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update location of autotest files in image_to_usb, fix loopback mounting for stateful partition #

Total comments: 3

Patch Set 3 : Fix build with autotest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -12 lines) Patch
M src/scripts/image_to_usb.sh View 1 2 7 chunks +26 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nick Sanders
10 years, 9 months ago (2010-03-19 20:28:48 UTC) #1
sosa
http://codereview.chromium.org/1125004/diff/1/2 File src/scripts/image_to_usb.sh (right): http://codereview.chromium.org/1125004/diff/1/2#newcode133 src/scripts/image_to_usb.sh:133: sudo umount ${STATEFUL_DIR} Potentially lose a loopback device if ...
10 years, 9 months ago (2010-03-19 20:31:12 UTC) #2
kmixter1
http://codereview.chromium.org/1125004/diff/1/2 File src/scripts/image_to_usb.sh (right): http://codereview.chromium.org/1125004/diff/1/2#newcode133 src/scripts/image_to_usb.sh:133: sudo umount ${STATEFUL_DIR} On 2010/03/19 20:31:12, sosa wrote: > ...
10 years, 9 months ago (2010-03-19 21:11:10 UTC) #3
Raja Aluri
http://codereview.chromium.org/1125004/diff/1/2 File src/scripts/image_to_usb.sh (right): http://codereview.chromium.org/1125004/diff/1/2#newcode36 src/scripts/image_to_usb.sh:36: AUTOTEST_SRC="/build/${FLAGS_board}/usr/local/autotest" setup_board takes --build-root an an argument. '/build' is ...
10 years, 9 months ago (2010-03-19 21:22:49 UTC) #4
Nick Sanders
It would hang on mount, looking onto it further I think it was because there's ...
10 years, 9 months ago (2010-03-19 21:31:54 UTC) #5
sosa
Nick you're right. I moved some code around earlier and didn't test it. Your fix ...
10 years, 9 months ago (2010-03-19 21:37:12 UTC) #6
kmixter1
+waihong
10 years, 9 months ago (2010-03-19 22:32:18 UTC) #7
Nick Sanders
I've added loop device unleaking, and a build root option. On Fri, Mar 19, 2010 ...
10 years, 9 months ago (2010-03-19 22:35:23 UTC) #8
Nick Sanders
http://codereview.chromium.org/1125004/diff/3/8001 File src/scripts/image_to_usb.sh (right): http://codereview.chromium.org/1125004/diff/3/8001#newcode40 src/scripts/image_to_usb.sh:40: AUTOTEST_SRC="${DEFAULT_CHROOT_DIR}${FLAGS_build_root}/${FLAGS_board}/usr/local/autotest" Is >80 char ok, or should I "\"?
10 years, 9 months ago (2010-03-19 22:38:45 UTC) #9
kmixter1
10 years, 9 months ago (2010-03-19 22:47:41 UTC) #10
LGTM

http://codereview.chromium.org/1125004/diff/3/8001
File src/scripts/image_to_usb.sh (right):

http://codereview.chromium.org/1125004/diff/3/8001#newcode40
src/scripts/image_to_usb.sh:40:
AUTOTEST_SRC="${DEFAULT_CHROOT_DIR}${FLAGS_build_root}/${FLAGS_board}/usr/local/autotest"
On 2010/03/19 22:38:45, nsanders1 wrote:
> Is >80 char ok, or should I "\"?

better to use \.  I usually create two paths in these cases to not mess up
indentation.  Call AUTOTEST_SRC just "SYSROOT" which is just up to the board and
then define AUTOTEST_SRC outside the if.

http://codereview.chromium.org/1125004/diff/3/8001#newcode148
src/scripts/image_to_usb.sh:148: local autotest_client="/home/autotest-client"
please fix indent here (and thx for getting rid of the tabs).

Powered by Google App Engine
This is Rietveld 408576698