Merge lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617 into lp:testdrive

Proposed by Howard Chan
Status: Merged
Merged at revision: 414
Proposed branch: lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617
Merge into: lp:testdrive
Diff against target: 149 lines (+34/-5)
7 files modified
bin/testdrive (+1/-1)
bin/testdrive-gtk (+1/-0)
data/ui/PreferencesTestdrivegtkDialog.ui (+16/-1)
debian/changelog (+4/-1)
testdrive/testdrive.py (+4/-0)
testdrivegtk/PreferencesTestdrivegtkDialog.py (+6/-0)
testdriverc (+2/-2)
To merge this branch: bzr merge lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617
Reviewer Review Type Date Requested Status
Andres Rodriguez Needs Fixing
Review via email: mp+159968@code.launchpad.net

Description of the change

This enables Testdrive to test UbuntuKylin ISOs and fixes LP: #1170617

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Howdy,

I made a quick review and found that:

1. No ISO's are displayed, could you please check that the ISO's are indeed available and that they are made available to TestDrive too?

2. Labels say 'UbuntuKylin' when they should say 'Ubuntu Kylin'. Please get that fixed.

Thanks.

review: Needs Fixing
Revision history for this message
Jackson Doak (noskcaj) wrote :

You also need to add reference to kylin in the testdrive.1 file (the documentation file)

Revision history for this message
Howard Chan (smartboyhw) wrote :

UbuntuKylin is indeed it's correct name… And that's strange when it doesn't
load the Kylin ISOs.

I won't have time to fix so maybe Jackson can fix it for me.
On 2013-5-23 上午6:47, "Jackson Doak" <email address hidden> wrote:

> You also need to add reference to kylin in the testdrive.1 file (the
> documentation file)
> --
>
> https://code.launchpad.net/~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617/+merge/159968
> You are the owner of lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617.
>

Revision history for this message
Jackson Doak (noskcaj) wrote :

ok, i'll branch it and have a look

On Thu, May 23, 2013 at 9:13 AM, Howard Chan <email address hidden> wrote:

> UbuntuKylin is indeed it's correct name… And that's strange when it doesn't
> load the Kylin ISOs.
>
> I won't have time to fix so maybe Jackson can fix it for me.
> On 2013-5-23 上午6:47, "Jackson Doak" <email address hidden> wrote:
>
> > You also need to add reference to kylin in the testdrive.1 file (the
> > documentation file)
> > --
> >
> >
> https://code.launchpad.net/~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617/+merge/159968
> > You are the owner of lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617.
> >
>
> --
>
> https://code.launchpad.net/~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617/+merge/159968
> You are subscribed to branch
> lp:~smartboyhw/testdrive/lp-fix-ubuntukylin-1170617.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/testdrive'
2--- bin/testdrive 2012-04-21 02:05:42 +0000
3+++ bin/testdrive 2013-04-21 08:04:25 +0000
4@@ -194,7 +194,7 @@
5 help=_('hardcode Ubuntu RELEASE codename'))
6 parser.add_option('-l', '--flavor', action='store', type='string', dest='flavor',
7 help=_('hardcode Ubuntu flavor. Available Flavors:\n\
8- ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu'))
9+ ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu/ubuntukylin'))
10 parser.add_option('-p', '--repo', action='store', type='string', dest='repository',
11 help=_('hardcode Ubuntu repository from where to obtain ISOs:\n\
12 releases/cdimage/cloud-daily/cloud-releases'))
13
14=== modified file 'bin/testdrive-gtk'
15--- bin/testdrive-gtk 2013-04-16 23:53:30 +0000
16+++ bin/testdrive-gtk 2013-04-21 08:04:25 +0000
17@@ -45,6 +45,7 @@
18 TAB_LABEL.append({"dist":"mythbuntu", "label":"Mythbuntu"})
19 TAB_LABEL.append({"dist":"ubuntustudio", "label":"Ubuntu Studio"})
20 TAB_LABEL.append({"dist":"lubuntu", "label":"Lubuntu"})
21+TAB_LABEL.append({"dist":"ubuntukylin", "label":"UbuntuKylin"})
22 TAB_LABEL.append({"dist":"other", "label":_("Other")})
23
24 global ISOLIST
25
26=== modified file 'data/ui/PreferencesTestdrivegtkDialog.ui'
27--- data/ui/PreferencesTestdrivegtkDialog.ui 2011-08-17 21:05:48 +0000
28+++ data/ui/PreferencesTestdrivegtkDialog.ui 2013-04-21 08:04:25 +0000
29@@ -974,6 +974,21 @@
30 </packing>
31 </child>
32 <child>
33+ <object class="GtkCheckButton" id="chk_flavor_ubuntukylin">
34+ <property name="label" translatable="yes">UbuntuKylin</property>
35+ <property name="visible">True</property>
36+ <property name="can_focus">True</property>
37+ <property name="receives_default">False</property>
38+ <property name="use_action_appearance">False</property>
39+ <property name="draw_indicator">True</property>
40+ </object>
41+ <packing>
42+ <property name="expand">False</property>
43+ <property name="fill">False</property>
44+ <property name="position">7</property>
45+ </packing>
46+ </child>
47+ <child>
48 <object class="GtkCheckButton" id="chk_flavor_other">
49 <property name="label" translatable="yes">Other</property>
50 <property name="visible">True</property>
51@@ -985,7 +1000,7 @@
52 <packing>
53 <property name="expand">False</property>
54 <property name="fill">False</property>
55- <property name="position">7</property>
56+ <property name="position">8</property>
57 </packing>
58 </child>
59 </object>
60
61=== modified file 'debian/changelog'
62--- debian/changelog 2013-04-18 16:22:50 +0000
63+++ debian/changelog 2013-04-21 08:04:25 +0000
64@@ -1,8 +1,11 @@
65-testdrive (3.21) unreleased; urgency=low
66+testdrive (3.21-0ubuntu1) UNRELEASED; urgency=low
67
68 [ Paolo Rotolo ]
69 * debian/control: Add usb-cretor-gtk to recommends. (LP: #962250)
70
71+ [ Howard Chan ]
72+ * Add UbuntuKylin to Testdrive. (LP: #1170617)
73+
74 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 18 Apr 2013 11:22:39 -0500
75
76 testdrive (3.20-0ubuntu1) raring; urgency=low
77
78=== modified file 'testdrive/testdrive.py'
79--- testdrive/testdrive.py 2013-04-16 05:45:33 +0000
80+++ testdrive/testdrive.py 2013-04-21 08:04:25 +0000
81@@ -114,6 +114,8 @@
82 category = 'kubuntu'
83 elif category == 'kubuntu-active':
84 category = 'kubuntu'
85+ elif category == 'ubuntukylin':
86+ category = 'UbuntuKylin'
87 flavor = iso.split()[0].capitalize()
88 if flavor == 'Ubuntu-netbook':
89 flavor = 'Ubuntu'
90@@ -129,6 +131,8 @@
91 flavor = 'Ubuntu Studio'
92 elif flavor == 'Ubuntu-server':
93 flavor = 'Ubuntu'
94+ elif flavor == 'Ubuntukylin':
95+ flavor = 'UbuntuKylin'
96 elif flavor == 'Cloud-server':
97 flavor = 'Cloud Server'
98 elif flavor == 'Cloud-desktop':
99
100=== modified file 'testdrivegtk/PreferencesTestdrivegtkDialog.py'
101--- testdrivegtk/PreferencesTestdrivegtkDialog.py 2012-04-21 02:22:27 +0000
102+++ testdrivegtk/PreferencesTestdrivegtkDialog.py 2013-04-21 08:04:25 +0000
103@@ -197,6 +197,8 @@
104 self.chk_flavor_ubuntustudio.connect("clicked", self.on_select_flavors)
105 self.chk_flavor_lubuntu = self.builder.get_object("chk_flavor_lubuntu")
106 self.chk_flavor_lubuntu.connect("clicked", self.on_select_flavors)
107+ self.chk_flavor_ubuntukylin = self.builder.get_object("chk_flavor_ubuntukylin")
108+ self.chk_flavor_ubuntukylin.connect("clicked", self.on_select_flavors)
109 self.chk_flavor_other = self.builder.get_object("chk_flavor_other")
110 self.chk_flavor_other.connect("clicked", self.on_select_flavors)
111
112@@ -292,6 +294,8 @@
113 self.chk_flavor_ubuntustudio.set_active(True)
114 elif flavor == 'lubuntu':
115 self.chk_flavor_lubuntu.set_active(True)
116+ elif flavor == 'ubuntukylin':
117+ self.chk_flavor_ubuntukylin.set_active(True)
118 elif flavor == 'other':
119 self.chk_flavor_other.set_active(True)
120 else:
121@@ -435,6 +439,8 @@
122 self.flavors = self.flavors + "ubuntustudio, "
123 if self.chk_flavor_lubuntu.get_active():
124 self.flavors = self.flavors + "lubuntu, "
125+ if self.chk_flavor_ubuntukylin.get_active():
126+ self.flavors = self.flavors + "ubuntukylin, "
127 if self.chk_flavor_other.get_active():
128 self.flavors = self.flavors + "other, "
129
130
131=== modified file 'testdriverc'
132--- testdriverc 2011-10-31 15:36:17 +0000
133+++ testdriverc 2013-04-21 08:04:25 +0000
134@@ -68,7 +68,7 @@
135
136 # The following line determines the default Ubuntu Flavor used by TestDrive.
137 # Possible flavors are:
138-# ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu/cloud-server/cloud-desktop
139+# ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu/cloud-server/cloud-desktop/ubuntukylin
140 f = ubuntu
141
142 # Section for TestDrive GTK specific variables.
143@@ -76,5 +76,5 @@
144
145 # The following line determines the default Ubuntu Flavors used by TestDrive GTK.
146 # Possible flavors are:
147-# ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu
148+# ubuntu/kubuntu/xubuntu/edubuntu/mythbuntu/ubuntustudio/lubuntu/ubuntukylin
149 f = ubuntu, kubuntu, xubuntu

Subscribers

People subscribed via source and target branches