Merge lp:~brendan-donegan/checkbox/remerge_1939_1965 into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2047
Merged at revision: 2046
Proposed branch: lp:~brendan-donegan/checkbox/remerge_1939_1965
Merge into: lp:checkbox
Diff against target: 67 lines (+18/-9)
3 files modified
debian/changelog (+6/-0)
jobs/miscellanea.txt.in (+1/-1)
scripts/sources_test (+11/-8)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/remerge_1939_1965
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+158875@code.launchpad.net

Description of the change

This merge reintroduces the changes from previously backed out revisions 1939 and 1965. These can now be merged.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-04-12 17:45:14 +0000
3+++ debian/changelog 2013-04-15 10:09:25 +0000
4@@ -4,6 +4,12 @@
5 * jobs/miscellanea.txt.in: Added jobs for manual verification of PXE boot and
6 remote IPMI to improve server test coverage.
7
8+ [ Brendan Donegan ]
9+ * scripts/sources_test - modified script so that it takes sources list
10+ location and repository list as arguments
11+ * jobs/miscellanea.txt.in - provide REPOSITORY and SOURCES_LIST environment
12+ variables to the sources_test script (LP: #1149288)
13+
14 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 12 Apr 2013 17:48:54 +0100
15
16 checkbox (0.15.7) raring; urgency=low
17
18=== modified file 'jobs/miscellanea.txt.in'
19--- jobs/miscellanea.txt.in 2013-04-12 15:57:54 +0000
20+++ jobs/miscellanea.txt.in 2013-04-15 10:09:25 +0000
21@@ -67,7 +67,7 @@
22
23 plugin: shell
24 name: miscellanea/sources-list
25-command: sources_test
26+command: sources_test $SOURCES_LIST "$REPOSITORIES"
27 _description: Checks that a specified sources list file contains the requested repositories
28
29 plugin: local
30
31=== modified file 'scripts/sources_test'
32--- scripts/sources_test 2013-03-07 10:46:20 +0000
33+++ scripts/sources_test 2013-04-15 10:09:25 +0000
34@@ -2,22 +2,25 @@
35
36 result=0
37
38-if [ -z "$SOURCES_LIST" ]; then
39- echo "See https://wiki.ubuntu.com/Testing/Automation/Checkbox/ConfiguringSourcesListTest for how to provide sources list location."
40+sources_list=$1
41+repositories=$2
42+
43+if [ -z "$sources_list" ]; then
44+ echo "Must provide sources list location, e.g. /etc/apt/sources.list"
45 exit 1
46 fi
47
48-if [ -z "$REPOSITORIES" ]; then
49- echo "See https://wiki.ubuntu.com/Testing/Automation/Checkbox/ConfiguringSourcesListTest for how to provide list of repositories to check for."
50+if [ -z "$repositories" ]; then
51+ echo "Must provide list of repositories to check for, e.g. 'deb http://gb.archive.ubuntu.com/ubuntu/ precise multiverse, deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse'"
52 exit 1
53 fi
54
55 IFS=$','
56-for repository in $REPOSITORIES; do
57- if grep -q "$repository" "$SOURCES_LIST"; then
58- echo "$repository found in $SOURCES_LIST"
59+for repository in $repositories; do
60+ if grep -q "$repository" "$sources_list"; then
61+ echo "$repository found in $sources_list"
62 else
63- echo "$repository not found in $SOURCES_LIST"
64+ echo "$repository not found in $sources_list"
65 result=1
66 fi
67 done

Subscribers

People subscribed via source and target branches