Merge lp:~liuyq0307/lava-dispatcher/sdcard-mount into lp:lava-dispatcher

Proposed by Yongqin Liu
Status: Merged
Merged at revision: 401
Proposed branch: lp:~liuyq0307/lava-dispatcher/sdcard-mount
Merge into: lp:lava-dispatcher
Diff against target: 31 lines (+6/-3)
2 files modified
lava_dispatcher/config.py (+1/-0)
lava_dispatcher/device/master.py (+5/-3)
To merge this branch: bzr merge lp:~liuyq0307/lava-dispatcher/sdcard-mount
Reviewer Review Type Date Requested Status
Andy Doan (community) Approve
Review via email: mp+129693@code.launchpad.net

Description of the change

update the sed command for mount sdcard of android image with the mount point of /storage/sdcard0

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) :
review: Approve
Revision history for this message
Antonio Terceiro (terceiro) wrote :

Yongqin Liu escreveu:
> Yongqin Liu has proposed merging lp:~liuyq0307/lava-dispatcher/sdcard-mount into lp:lava-dispatcher.
>
> Requested reviews:
> Linaro Validation Team (linaro-validation)
>
> For more details, see:
> https://code.launchpad.net/~liuyq0307/lava-dispatcher/sdcard-mount/+merge/129693
>
> update the sed command for mount sdcard of android image with the mount point of /storage/sdcard0
> --
> https://code.launchpad.net/~liuyq0307/lava-dispatcher/sdcard-mount/+merge/129693
> Your team Linaro Validation Team is requested to review the proposed merge of lp:~liuyq0307/lava-dispatcher/sdcard-mount into lp:lava-dispatcher.

> === modified file 'lava_dispatcher/config.py'
> --- lava_dispatcher/config.py 2012-10-02 20:54:32 +0000
> +++ lava_dispatcher/config.py 2012-10-15 15:27:29 +0000
> @@ -65,6 +65,7 @@
> tester_hostname = schema.StringOption(default="linaro")
> tester_str = schema.StringOption()
> val = schema.StringOption()
> + sdcard_mountpoint_path = schema.StringOption(default="/storage/sdcard0")
>
> simulator_binary = schema.StringOption()
> license_server = schema.StringOption()
>

shouldn't the default value be what was previously hardcoded (i.e.
/mnt/sdcard) for backwards compatibility?

--
Antonio Terceiro
Software Engineer - Linaro
http://www.linaro.org

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

> > === modified file 'lava_dispatcher/config.py'
> > --- lava_dispatcher/config.py 2012-10-02 20:54:32 +0000
> > +++ lava_dispatcher/config.py 2012-10-15 15:27:29 +0000
> > @@ -65,6 +65,7 @@
> > tester_hostname = schema.StringOption(default="linaro")
> > tester_str = schema.StringOption()
> > val = schema.StringOption()
> > + sdcard_mountpoint_path =
> schema.StringOption(default="/storage/sdcard0")
> >
> > simulator_binary = schema.StringOption()
> > license_server = schema.StringOption()
> >
>
> shouldn't the default value be what was previously hardcoded (i.e.
> /mnt/sdcard) for backwards compatibility?
Now all the pandaboard builds have changed to use the new mountpoint,
And most of the case in the future, we will use the new version builds
so I'd like to defined mount point in conf file when necessary like using previous build.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_dispatcher/config.py'
2--- lava_dispatcher/config.py 2012-10-02 20:54:32 +0000
3+++ lava_dispatcher/config.py 2012-10-15 15:27:29 +0000
4@@ -65,6 +65,7 @@
5 tester_hostname = schema.StringOption(default="linaro")
6 tester_str = schema.StringOption()
7 val = schema.StringOption()
8+ sdcard_mountpoint_path = schema.StringOption(default="/storage/sdcard0")
9
10 simulator_binary = schema.StringOption()
11 license_server = schema.StringOption()
12
13=== modified file 'lava_dispatcher/device/master.py'
14--- lava_dispatcher/device/master.py 2012-10-09 02:05:17 +0000
15+++ lava_dispatcher/device/master.py 2012-10-15 15:27:29 +0000
16@@ -610,10 +610,12 @@
17 # If there is no userdata partition on the sdcard(like iMX and Origen),
18 # then the sdcard partition will be used as the userdata partition as
19 # before, and so cannot be used here as the sdcard on android
20- original = 'dev_mount sdcard /mnt/sdcard %s ' % (
21+ original = 'dev_mount sdcard %s %s ' % (
22+ target.config.sdcard_mountpoint_path,
23 target.config.sdcard_part_android_org)
24- replacement = 'dev_mount sdcard /mnt/sdcard %s ' % (
25- target.sdcard_part_lava)
26+ replacement = 'dev_mount sdcard %s %s ' % (
27+ target.config.sdcard_mountpoint_path,
28+ target.config.sdcard_part_android)
29 sed_cmd = "s@{original}@{replacement}@".format(original=original,
30 replacement=replacement)
31 session.run(

Subscribers

People subscribed via source and target branches