Merge lp:~canonical-platform-qa/ubuntu-ota-tests/break_testbed into lp:ubuntu-ota-tests

Proposed by Leo Arias on 2015-03-17
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/ubuntu-ota-tests/break_testbed
Merge into: lp:ubuntu-ota-tests
Diff against target: 51 lines (+12/-4) (has conflicts)
2 files modified
adb-reboot-to-recovery (+7/-3)
debian/tests/control (+5/-1)
Text conflict in debian/tests/control
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntu-ota-tests/break_testbed
Reviewer Review Type Date Requested Status
Canonical Platform QA Team 2015-03-17 Pending
Review via email: mp+253137@code.launchpad.net

Description of the Change

Just a quick hack to give this idea a try. It sounds wrong to me to have changed the revert command, but I still haven't found to make a separate revert-full-system.

To post a comment you must log in.
9. By Leo Arias on 2015-03-17

Make it verbose.

10. By Leo Arias on 2015-03-17

Fixed the verbosity.

11. By Leo Arias on 2015-03-17

Added a wait for the phone to boot.

12. By Leo Arias on 2015-03-17

Added an extra sleep.

Unmerged revisions

12. By Leo Arias on 2015-03-17

Added an extra sleep.

11. By Leo Arias on 2015-03-17

Added a wait for the phone to boot.

10. By Leo Arias on 2015-03-17

Fixed the verbosity.

9. By Leo Arias on 2015-03-17

Make it verbose.

8. By Leo Arias on 2015-03-17

First attempt at reflashing between tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'adb-reboot-to-recovery'
2--- adb-reboot-to-recovery 2015-03-09 20:05:44 +0000
3+++ adb-reboot-to-recovery 2015-03-17 05:04:15 +0000
4@@ -43,7 +43,7 @@
5
6 SSH_USER=phablet
7 SUDO_PASSWORD=
8-CAPABILITIES='isolation-machine reboot'
9+CAPABILITIES='isolation-machine reboot revert revert-full-system'
10
11 # allow using lp:phablet-tools from a checkout
12 if [ -n "$PHABLET_TOOLS_PATH" ]; then
13@@ -234,9 +234,13 @@
14 # save current network connections
15 NETCONF=$(phablet-config $ADBOPTS network --read) || true:
16
17- # do factory reset
18- adb $ADBOPTS shell 'gdbus call --system -d com.canonical.SystemImage -o /Service -m com.canonical.SystemImage.FactoryReset'
19+ # reflash the device to the original version.
20+ ubuntu-device-flash -v --revision=-1 touch --developer-mode --password 0000 --channel="ubuntu-touch/devel-proposed" --wipe
21+
22+ # give some time for the phone to start rebooting.
23+ sleep 10
24 wait_booted
25+
26 adb $ADBOPTS shell 'while ! pidof NetworkManager >/dev/null; do sleep 1; done'
27
28 # restore network connections
29
30=== modified file 'debian/tests/control'
31--- debian/tests/control 2015-03-12 21:54:50 +0000
32+++ debian/tests/control 2015-03-17 05:04:15 +0000
33@@ -6,9 +6,10 @@
34 system-image-dbus
35
36 Test-Command: cd debian/tests; python3 -m unittest ubuntu_ota_tests.tests.test_basic_upgrade
37-Restrictions: needs-root allow-stderr
38+Restrictions: needs-root allow-stderr breaks-testbed
39 Depends: python3-autopilot,
40 python3-psutil,
41+<<<<<<< TREE
42 system-image-cli
43
44 Tests: check_for_update
45@@ -17,3 +18,6 @@
46 ubuntu-download-manager,
47 dbus, dbus-x11,
48 python3-psutil, python3-xdg, python3-setuptools, python3-nose2
49+=======
50+ system-image-cli
51+>>>>>>> MERGE-SOURCE

Subscribers

People subscribed via source and target branches

to all changes: