Merge lp:~fginther/ubuntu-test-cases/boottest-standalone into lp:~canonical-ci-engineering/ubuntu-test-cases/bootttest

Proposed by Francis Ginther
Status: Merged
Approved by: Francis Ginther
Approved revision: 2
Merged at revision: 2
Proposed branch: lp:~fginther/ubuntu-test-cases/boottest-standalone
Merge into: lp:~canonical-ci-engineering/ubuntu-test-cases/bootttest
Diff against target: 79 lines (+14/-7)
1 file modified
boottest.sh (+14/-7)
To merge this branch: bzr merge lp:~fginther/ubuntu-test-cases/boottest-standalone
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+261151@code.launchpad.net

Commit message

Modify paths and bzr branch lp:ubuntu-test-cases/touch as a dependency.

Description of the change

Modify paths and bzr branch lp:ubuntu-test-cases/touch as a dependency.

The result of this is a working version of boottest that is separated from lp:ubuntu-test-cases/touch. It does use lp:ubuntu-test-cases/touch as a dependency, grabbing a fresh copy on each run.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

Found one potential issue, otherwise looks pretty good. I do think this is a sane idea, and moves us more towards the model we are shooting for. In the future, this really should be a standalone piece that anyone could own.

review: Needs Fixing
Revision history for this message
Francis Ginther (fginther) wrote :

My intention is that this branch contain everything specifically related to boottesting. This includes:

 - boottest.sh
 - adt-run.py (specifically used by boottest.sh to execute adt-run)
 - tests/boottest - The dep8 test used to execute the actual test
 - tests/bootfail - Another dep8 test used to test an actual boot failure

If you think boottest.sh and adt-run belong under a scripts dir, I'm fine with that.

Revision history for this message
Paul Larson (pwlars) wrote :

Ok, I missed that you moved it already. In that case, there's certainly no path problem there. Looks good, we'll just have to change the branch we pull from in auto-package-testing jenkins template I guess. I have another change in progress that will affect that for the description setter if we want to roll them together.

review: Approve
Revision history for this message
Francis Ginther (fginther) wrote :

This is now relocated to lp:ubuntu-touch-boottest.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'boottest.sh'
--- boottest.sh 2015-06-04 18:46:39 +0000
+++ boottest.sh 2015-06-04 21:08:28 +0000
@@ -2,7 +2,7 @@
2set -e2set -e
33
4# Where am I ?4# Where am I ?
5BASEDIR=$(dirname $(readlink -f $0))/..5BASEDIR=$(dirname $(readlink -f $0))
66
7# Provide a message to report special information7# Provide a message to report special information
8END_MESSAGE=""8END_MESSAGE=""
@@ -21,6 +21,13 @@
21 source $BOOTTESTRC21 source $BOOTTESTRC
22fi22fi
2323
24# Setup our dependencies
25UTILDIR="${BASEDIR}/utils"
26if [ -f "${UTILDIR}" ]; then
27 rm -rf "${UTILDIR}"
28fi
29bzr branch lp:ubuntu-test-cases/touch $UTILDIR
30
24# Default adt-run timeout31# Default adt-run timeout
25export ADT_TIMEOUT=${ADT_TIMEOUT:-600}32export ADT_TIMEOUT=${ADT_TIMEOUT:-600}
2633
@@ -58,7 +65,7 @@
58 fi65 fi
5966
60 # Ensure we leave a usable phone67 # Ensure we leave a usable phone
61 [ -z ${NODE_NAME} ] || ${BASEDIR}/scripts/recover.py ${NODE_NAME}68 [ -z ${NODE_NAME} ] || ${UTILDIR}/scripts/recover.py ${NODE_NAME}
6269
63 # Leave a parting message70 # Leave a parting message
64 # (disable command tracing as it confuses the output)71 # (disable command tracing as it confuses the output)
@@ -73,7 +80,7 @@
73# These can be set by jenkins when running in that context80# These can be set by jenkins when running in that context
7481
75# ANDROID_SERIAL: The phone ID.82# ANDROID_SERIAL: The phone ID.
76[ -z ${NODE_NAME} ] || export ANDROID_SERIAL=${ANDROID_SERIAL:-$(${BASEDIR}/scripts/get-adb-id ${NODE_NAME})}83[ -z ${NODE_NAME} ] || export ANDROID_SERIAL=${ANDROID_SERIAL:-$(${UTILDIR}/scripts/get-adb-id ${NODE_NAME})}
7784
78# FIXME: Should be provided -- vila 2015-01-2685# FIXME: Should be provided -- vila 2015-01-26
79ARCH="${ARCH:-krillin}"86ARCH="${ARCH:-krillin}"
@@ -87,14 +94,14 @@
87export SKIP_TESTCONFIG=194export SKIP_TESTCONFIG=1
8895
89# Ensures we start with a usable phone96# Ensures we start with a usable phone
90[ -z ${NODE_NAME} ] || ${BASEDIR}/scripts/recover.py ${NODE_NAME}97[ -z ${NODE_NAME} ] || ${UTILDIR}/scripts/recover.py ${NODE_NAME}
9198
92TESTS=${BASEDIR}/tests99TESTS=${BASEDIR}/tests
93100
94# Provision the device101# Provision the device
95# Allow the image revision to be overridden if the latest is unusable102# Allow the image revision to be overridden if the latest is unusable
96REVISION="${REVISION:-0}"103REVISION="${REVISION:-0}"
97PROV_CMD="${BASEDIR}/scripts/provision.sh \104PROV_CMD="${UTILDIR}/scripts/provision.sh \
98 -r $REVISION \105 -r $REVISION \
99 -n ${HOME}/.ubuntu-ci/wifi.conf -w"106 -n ${HOME}/.ubuntu-ci/wifi.conf -w"
100RETRY=3107RETRY=3
@@ -104,7 +111,7 @@
104 ${PROV_CMD} && break111 ${PROV_CMD} && break
105 PROV_ERR=$?112 PROV_ERR=$?
106 # Make sure the device doesn't need to be recovered first113 # Make sure the device doesn't need to be recovered first
107 ${BASEDIR}/scripts/recover.py ${NODE_NAME}114 ${UTILDIR}/scripts/recover.py ${NODE_NAME}
108 if [ ${PROV_ERR} -eq 124 ]; then115 if [ ${PROV_ERR} -eq 124 ]; then
109 # The provisioning fails with a timeout, the image is not116 # The provisioning fails with a timeout, the image is not
110 # flashable/bootable117 # flashable/bootable
@@ -179,7 +186,7 @@
179 # Now execute the boot test186 # Now execute the boot test
180 set +e187 set +e
181 echo "Running boottest test suite."188 echo "Running boottest test suite."
182 ${BASEDIR}/scripts/run-adt.py ${ADT_CMD} --unbuilt-tree ${TESTS}/boottest -o results ${ADT_OPTS}189 ${BASEDIR}/run-adt.py ${ADT_CMD} --unbuilt-tree ${TESTS}/boottest -o results ${ADT_OPTS}
183 RET=$?190 RET=$?
184 # Fetch the sourcepkg-version file that contains the version data191 # Fetch the sourcepkg-version file that contains the version data
185 # for the package under test. We can't use the testpkg-version file192 # for the package under test. We can't use the testpkg-version file

Subscribers

People subscribed via source and target branches