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
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-12 17:45:14 +0000
+++ debian/changelog 2013-04-15 10:09:25 +0000
@@ -4,6 +4,12 @@
4 * jobs/miscellanea.txt.in: Added jobs for manual verification of PXE boot and4 * jobs/miscellanea.txt.in: Added jobs for manual verification of PXE boot and
5 remote IPMI to improve server test coverage.5 remote IPMI to improve server test coverage.
66
7 [ Brendan Donegan ]
8 * scripts/sources_test - modified script so that it takes sources list
9 location and repository list as arguments
10 * jobs/miscellanea.txt.in - provide REPOSITORY and SOURCES_LIST environment
11 variables to the sources_test script (LP: #1149288)
12
7 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 12 Apr 2013 17:48:54 +010013 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 12 Apr 2013 17:48:54 +0100
814
9checkbox (0.15.7) raring; urgency=low15checkbox (0.15.7) raring; urgency=low
1016
=== modified file 'jobs/miscellanea.txt.in'
--- jobs/miscellanea.txt.in 2013-04-12 15:57:54 +0000
+++ jobs/miscellanea.txt.in 2013-04-15 10:09:25 +0000
@@ -67,7 +67,7 @@
6767
68plugin: shell68plugin: shell
69name: miscellanea/sources-list69name: miscellanea/sources-list
70command: sources_test70command: sources_test $SOURCES_LIST "$REPOSITORIES"
71_description: Checks that a specified sources list file contains the requested repositories71_description: Checks that a specified sources list file contains the requested repositories
7272
73plugin: local73plugin: local
7474
=== modified file 'scripts/sources_test'
--- scripts/sources_test 2013-03-07 10:46:20 +0000
+++ scripts/sources_test 2013-04-15 10:09:25 +0000
@@ -2,22 +2,25 @@
22
3result=03result=0
44
5if [ -z "$SOURCES_LIST" ]; then5sources_list=$1
6 echo "See https://wiki.ubuntu.com/Testing/Automation/Checkbox/ConfiguringSourcesListTest for how to provide sources list location."6repositories=$2
7
8if [ -z "$sources_list" ]; then
9 echo "Must provide sources list location, e.g. /etc/apt/sources.list"
7 exit 110 exit 1
8fi11fi
912
10if [ -z "$REPOSITORIES" ]; then13if [ -z "$repositories" ]; then
11 echo "See https://wiki.ubuntu.com/Testing/Automation/Checkbox/ConfiguringSourcesListTest for how to provide list of repositories to check for."14 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'"
12 exit 115 exit 1
13fi16fi
1417
15IFS=$','18IFS=$','
16for repository in $REPOSITORIES; do19for repository in $repositories; do
17 if grep -q "$repository" "$SOURCES_LIST"; then20 if grep -q "$repository" "$sources_list"; then
18 echo "$repository found in $SOURCES_LIST"21 echo "$repository found in $sources_list"
19 else22 else
20 echo "$repository not found in $SOURCES_LIST"23 echo "$repository not found in $sources_list"
21 result=124 result=1
22 fi25 fi
23done26done

Subscribers

People subscribed via source and target branches