Merge lp:~jamesodhunt/auto-package-testing/partial-fix-for-bug-1075976 into lp:auto-package-testing

Proposed by James Hunt
Status: Merged
Merged at revision: 95
Proposed branch: lp:~jamesodhunt/auto-package-testing/partial-fix-for-bug-1075976
Merge into: lp:auto-package-testing
Diff against target: 118 lines (+21/-6)
4 files modified
bin/run-adt-test (+6/-1)
bin/testbed/run-adt (+12/-2)
doc/README.md (+1/-1)
doc/USAGE.md (+2/-2)
To merge this branch: bzr merge lp:~jamesodhunt/auto-package-testing/partial-fix-for-bug-1075976
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+133508@code.launchpad.net

Description of the change

  * bin/run-adt-test: add --no-eat option (which is passed to run-adt).
  * bin/testbed/run-adt: Add --no-eat option to disable eatmydata,
    to reinstate normal data integrity behaviour
    (atleast partially fixes LP bug 1075976).

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

As discussed on IRC, I merged the typo fixes. The --no-eat doesn't seem relevant, so I left those parts out.

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/run-adt-test'
2--- bin/run-adt-test 2012-11-07 12:39:36 +0000
3+++ bin/run-adt-test 2012-11-08 16:11:29 +0000
4@@ -76,6 +76,8 @@
5 -s,--use-shm Write snapshot files to /dev/shm
6 -S,--source Run from source instead of dsc
7 -d,--debug Enable debug mode
8+ -e,--no-eat Do not use eatmydata when running tests
9+ (use when tests require data integrity).
10 -P,--proposed
11 Enable -proposed in testbed
12 -p,--ppa Include a PPA to search packages
13@@ -88,7 +90,7 @@
14 }
15
16
17-TEMP=$(getopt -o ha:b:r:p:PdklsS --long help,arch:,bzr:,release:,ppa:,proposed,debug,keep,login,use-shm,source -- "$@")
18+TEMP=$(getopt -o eha:b:r:p:PdklsS --long help,arch:,bzr:,release:,ppa:,no-eat,proposed,debug,keep,login,use-shm,source -- "$@")
19 eval set -- "$TEMP"
20
21 exec 2>&1
22@@ -126,6 +128,9 @@
23 set -x
24 RUN_OPTS="$RUN_OPTS -d"
25 shift;;
26+ -e|--no-eat)
27+ RUN_OPTS="$RUN_OPTS --no-eat"
28+ shift;;
29 -k|--keep)
30 KEEP=1
31 trap - EXIT INT
32
33=== modified file 'bin/testbed/run-adt'
34--- bin/testbed/run-adt 2012-10-29 10:05:21 +0000
35+++ bin/testbed/run-adt 2012-11-08 16:11:29 +0000
36@@ -25,6 +25,7 @@
37 USE_SOURCE=0
38 USE_PROPOSED=0
39 DONT_RUN=0
40+USE_EATMYDATA=1
41 BRANCH=""
42
43 RET=0
44@@ -38,6 +39,8 @@
45 -b,--bzr BRANCH Use bazaar branch BRANCH. It cannot be used
46 simultaneouslty with -S
47 -d,--debug Enable debug mode
48+ -e,--no-eat Do not use eatmydata when running tests
49+ (use when tests require data integrity).
50 -n,--no-run Do not run, just initialize the environment
51 -o,--logdir DIR Log directory (default:$ADTLOG_PATH)
52 -p,--ppa PPA Include a PPA to search packages
53@@ -47,7 +50,7 @@
54 exit 1
55 }
56
57-TEMP=$(getopt -o hb:do:np:PS --long help,bzr:,debug,logdir:,no-run,ppa:,proposed,source -- "$@")
58+TEMP=$(getopt -o ehb:do:np:PS --long help,bzr:,debug,logdir:,no-run,no-eat,ppa:,proposed,source -- "$@")
59 eval set -- "$TEMP"
60
61 exec 2>&1
62@@ -69,6 +72,9 @@
63 -p|--ppa)
64 PPA=$2
65 shift 2;;
66+ -e|--no-eat)
67+ USE_EATMYDATA=0
68+ shift;;
69 -n|--no-run)
70 DONT_RUN=1
71 shift;;
72@@ -98,7 +104,11 @@
73 locale-gen en_US.UTF-8
74
75 export DEBIAN_FRONTEND=noninteractive
76-export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libeatmydata/libeatmydata.so"
77+
78+if [ "$USE_EATMYDATA" -eq 1 ]
79+then
80+ export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libeatmydata/libeatmydata.so"
81+fi
82
83 if [ $USE_PROPOSED -eq 1 ]; then
84 release=$( lsb_release -cs )
85
86=== modified file 'doc/README.md'
87--- doc/README.md 2012-10-29 10:03:06 +0000
88+++ doc/README.md 2012-11-08 16:11:29 +0000
89@@ -16,7 +16,7 @@
90 * trigger-adt-test: Check periodically the changes in the archive and trigger
91 the tests.
92
93-The project on Lauchpach is https://launchpad.net/auto-package-testing
94+The project on Launchpad is https://launchpad.net/auto-package-testing
95
96 DEP8 documentation:
97
98
99=== modified file 'doc/USAGE.md'
100--- doc/USAGE.md 2012-10-26 13:01:35 +0000
101+++ doc/USAGE.md 2012-11-08 16:11:29 +0000
102@@ -90,7 +90,7 @@
103 failures, the following command will start the testbed and prepare it so you can
104 run adt-run directly:
105
106- $ ./bin/run-adt-test -r quantal -a amd64 -S l apport
107+ $ ./bin/run-adt-test -r quantal -a amd64 -S -l apport
108
109 * -S will install the sources of apport
110 * -l will log you in
111@@ -100,6 +100,6 @@
112 $ cd apport*
113 $ sudo adt-run --unbuilt-tree . --- adt-virt-null
114
115-Be careful to copy your work outside of the testbed before existing, as the
116+Be careful to copy your work outside of the testbed before exiting, as the
117 testbed will be destroyed on exit. You can keep the testbed after the run with
118 the option '-k'.

Subscribers

People subscribed via source and target branches