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
=== modified file 'bin/run-adt-test'
--- bin/run-adt-test 2012-11-07 12:39:36 +0000
+++ bin/run-adt-test 2012-11-08 16:11:29 +0000
@@ -76,6 +76,8 @@
76 -s,--use-shm Write snapshot files to /dev/shm76 -s,--use-shm Write snapshot files to /dev/shm
77 -S,--source Run from source instead of dsc77 -S,--source Run from source instead of dsc
78 -d,--debug Enable debug mode78 -d,--debug Enable debug mode
79 -e,--no-eat Do not use eatmydata when running tests
80 (use when tests require data integrity).
79 -P,--proposed 81 -P,--proposed
80 Enable -proposed in testbed82 Enable -proposed in testbed
81 -p,--ppa Include a PPA to search packages83 -p,--ppa Include a PPA to search packages
@@ -88,7 +90,7 @@
88}90}
8991
9092
91TEMP=$(getopt -o ha:b:r:p:PdklsS --long help,arch:,bzr:,release:,ppa:,proposed,debug,keep,login,use-shm,source -- "$@")93TEMP=$(getopt -o eha:b:r:p:PdklsS --long help,arch:,bzr:,release:,ppa:,no-eat,proposed,debug,keep,login,use-shm,source -- "$@")
92eval set -- "$TEMP"94eval set -- "$TEMP"
9395
94exec 2>&196exec 2>&1
@@ -126,6 +128,9 @@
126 set -x128 set -x
127 RUN_OPTS="$RUN_OPTS -d"129 RUN_OPTS="$RUN_OPTS -d"
128 shift;;130 shift;;
131 -e|--no-eat)
132 RUN_OPTS="$RUN_OPTS --no-eat"
133 shift;;
129 -k|--keep)134 -k|--keep)
130 KEEP=1135 KEEP=1
131 trap - EXIT INT136 trap - EXIT INT
132137
=== modified file 'bin/testbed/run-adt'
--- bin/testbed/run-adt 2012-10-29 10:05:21 +0000
+++ bin/testbed/run-adt 2012-11-08 16:11:29 +0000
@@ -25,6 +25,7 @@
25USE_SOURCE=025USE_SOURCE=0
26USE_PROPOSED=026USE_PROPOSED=0
27DONT_RUN=027DONT_RUN=0
28USE_EATMYDATA=1
28BRANCH=""29BRANCH=""
2930
30RET=031RET=0
@@ -38,6 +39,8 @@
38 -b,--bzr BRANCH Use bazaar branch BRANCH. It cannot be used39 -b,--bzr BRANCH Use bazaar branch BRANCH. It cannot be used
39 simultaneouslty with -S40 simultaneouslty with -S
40 -d,--debug Enable debug mode41 -d,--debug Enable debug mode
42 -e,--no-eat Do not use eatmydata when running tests
43 (use when tests require data integrity).
41 -n,--no-run Do not run, just initialize the environment44 -n,--no-run Do not run, just initialize the environment
42 -o,--logdir DIR Log directory (default:$ADTLOG_PATH)45 -o,--logdir DIR Log directory (default:$ADTLOG_PATH)
43 -p,--ppa PPA Include a PPA to search packages46 -p,--ppa PPA Include a PPA to search packages
@@ -47,7 +50,7 @@
47 exit 150 exit 1
48}51}
4952
50TEMP=$(getopt -o hb:do:np:PS --long help,bzr:,debug,logdir:,no-run,ppa:,proposed,source -- "$@")53TEMP=$(getopt -o ehb:do:np:PS --long help,bzr:,debug,logdir:,no-run,no-eat,ppa:,proposed,source -- "$@")
51eval set -- "$TEMP"54eval set -- "$TEMP"
5255
53exec 2>&156exec 2>&1
@@ -69,6 +72,9 @@
69 -p|--ppa)72 -p|--ppa)
70 PPA=$273 PPA=$2
71 shift 2;;74 shift 2;;
75 -e|--no-eat)
76 USE_EATMYDATA=0
77 shift;;
72 -n|--no-run)78 -n|--no-run)
73 DONT_RUN=179 DONT_RUN=1
74 shift;;80 shift;;
@@ -98,7 +104,11 @@
98locale-gen en_US.UTF-8104locale-gen en_US.UTF-8
99105
100export DEBIAN_FRONTEND=noninteractive106export DEBIAN_FRONTEND=noninteractive
101export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libeatmydata/libeatmydata.so"107
108if [ "$USE_EATMYDATA" -eq 1 ]
109then
110 export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libeatmydata/libeatmydata.so"
111fi
102112
103if [ $USE_PROPOSED -eq 1 ]; then113if [ $USE_PROPOSED -eq 1 ]; then
104 release=$( lsb_release -cs )114 release=$( lsb_release -cs )
105115
=== modified file 'doc/README.md'
--- doc/README.md 2012-10-29 10:03:06 +0000
+++ doc/README.md 2012-11-08 16:11:29 +0000
@@ -16,7 +16,7 @@
16 * trigger-adt-test: Check periodically the changes in the archive and trigger16 * trigger-adt-test: Check periodically the changes in the archive and trigger
17the tests.17the tests.
1818
19The project on Lauchpach is https://launchpad.net/auto-package-testing19The project on Launchpad is https://launchpad.net/auto-package-testing
2020
21DEP8 documentation:21DEP8 documentation:
2222
2323
=== modified file 'doc/USAGE.md'
--- doc/USAGE.md 2012-10-26 13:01:35 +0000
+++ doc/USAGE.md 2012-11-08 16:11:29 +0000
@@ -90,7 +90,7 @@
90failures, the following command will start the testbed and prepare it so you can90failures, the following command will start the testbed and prepare it so you can
91run adt-run directly:91run adt-run directly:
9292
93 $ ./bin/run-adt-test -r quantal -a amd64 -S l apport93 $ ./bin/run-adt-test -r quantal -a amd64 -S -l apport
9494
95 * -S will install the sources of apport95 * -S will install the sources of apport
96 * -l will log you in96 * -l will log you in
@@ -100,6 +100,6 @@
100 $ cd apport*100 $ cd apport*
101 $ sudo adt-run --unbuilt-tree . --- adt-virt-null101 $ sudo adt-run --unbuilt-tree . --- adt-virt-null
102102
103Be careful to copy your work outside of the testbed before existing, as the103Be careful to copy your work outside of the testbed before exiting, as the
104testbed will be destroyed on exit. You can keep the testbed after the run with104testbed will be destroyed on exit. You can keep the testbed after the run with
105the option '-k'.105the option '-k'.

Subscribers

People subscribed via source and target branches