Merge lp:~canonical-platform-qa/ubuntu-ota-tests/upgrade into lp:ubuntu-ota-tests
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~canonical-platform-qa/ubuntu-ota-tests/upgrade |
| Merge into: | lp:ubuntu-ota-tests |
| Prerequisite: | lp:~canonical-platform-qa/ubuntu-ota-tests/adding-initial-autopkgtesting |
| Diff against target: |
600 lines (+546/-11) 7 files modified
adb-reboot-to-recovery (+337/-0) debian/tests/control (+4/-1) debian/tests/ota_basic (+29/-10) debian/tests/ubuntu_ota_tests/__init__.py (+27/-0) debian/tests/ubuntu_ota_tests/hooks.py (+42/-0) debian/tests/ubuntu_ota_tests/services.py (+74/-0) debian/tests/ubuntu_ota_tests/system.py (+33/-0) |
| To merge this branch: | bzr merge lp:~canonical-platform-qa/ubuntu-ota-tests/upgrade |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brendan Donegan (community) | 2015-03-03 | Needs Information on 2015-03-04 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-03-03.
Description of the Change
Flash with:
ubuntu-device-flash --revision=-1 touch --developer-mode --password 0000 --channel=
The adb-reboot-
261 + adb $ADBOPTS reboot recovery
| Leo Arias (elopio) wrote : | # |
| Leo Arias (elopio) wrote : | # |
After the reboot, I got:
adt-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds...
If I phablet-shell in a different terminal, the test continues.
So we are missing a way to reset the ssh connection.
| Leo Arias (elopio) wrote : | # |
This makes it work, but I'm not quite sure if it is right.
=== modified file 'adb-reboot-
--- adb-reboot-
+++ adb-reboot-
@@ -256,7 +256,7 @@
adb $ADBOPTS reboot recovery
wait_booted
adb $ADBOPTS forward tcp:$FWD_PORT tcp:22
- ubuntu_
+ open
}
| Brendan Donegan (brendan-donegan) wrote : | # |
Do we definitely want to merge this? It doesn't implement what we want since we decided to use dbus to trigger the update, which we still need the scripts for, but I suppose it would be a good building block to start from. Any other opinions?
| Federico Gimenez (fgimenez) wrote : | # |
I'm getting this [1] at the end of the execution, otherwise seems to work fine
| Leo Arias (elopio) wrote : | # |
No, please don't merge it. The system-image-cli it's easy to replace, but the adb-reboot-
| Brendan Donegan (brendan-donegan) wrote : | # |
Ok, set to WIP to avoid confusion
| Leo Arias (elopio) wrote : | # |
There was no need to call open again.
We just need to renable ssh with a dbus call. I pushed this version.
263 + adb $ADBOPTS shell 'gdbus call -y -d com.canonical.
| Leo Arias (elopio) wrote : | # |
In order to get the latest system-image-dbus version, run with:
adt-run -d -B --unbuilt-tree=. --output-dir /tmp/output --setup-commands "mount -o remount,rw /; apt-add-repository -y ppa:barry/
- 9. By Leo Arias on 2015-03-09
-
Quickly fixed the apply script.
- 10. By Leo Arias on 2015-03-09
-
Merged with prerequisite.
- 11. By Leo Arias on 2015-03-09
-
Merged with prerequisite. Changed the script to python.
- 12. By Leo Arias on 2015-03-09
-
Reduced the try.
- 13. By Leo Arias on 2015-03-09
-
fixtures not needed yet.
- 14. By Leo Arias on 2015-03-10
-
Merged with prerequisite.
- 15. By Leo Arias on 2015-03-10
-
Move the test to the ota module.
- 16. By Leo Arias on 2015-03-10
-
Merged with parent.
- 17. By Leo Arias on 2015-03-10
-
Use the command.
- 18. By Leo Arias on 2015-03-10
-
Added the missing file.
- 19. By Leo Arias on 2015-03-10
-
Fixed the import order.
- 20. By Leo Arias on 2015-03-10
-
Fixed the reboot call.
- 21. By Leo Arias on 2015-03-10
-
Use cli and the current version for now.
- 22. By Leo Arias on 2015-03-10
-
Removed the dbus upgrade, not yet working.
- 23. By Leo Arias on 2015-03-10
-
Downgrade to the released version.
- 24. By Leo Arias on 2015-03-11
-
Removed the rebooting.
- 25. By Leo Arias on 2015-03-12
-
Cleaned the code.
- 26. By Leo Arias on 2015-03-12
-
Merged with trunk.

To give it a try, use something like:
elopio@ tangamandapio76 -desktop: ~/workspace/ canonical/ ubuntu- ota-tests/ experimeal/ upgrade$ phablet-network tangamandapio76 -desktop: ~/workspace/ canonical/ ubuntu- ota-tests/ experimental/ upgrade$ adt-run -d -B --unbuilt- tree=/home/ elopio/ workspace/ canonical/ ubuntu- ota-tests/ experimental/ upgrade --output-dir /tmp/output --- ssh -s /home/elopio/ workspace/ canonical/ ubuntu- ota-tests/ experimental/ upgrade/ adb-reboot- to-recovery
elopio@