Test Needed: Ubiquity (Automated Image Installs)

Bug #1116774 reported by Nicholas Skaggs
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Autopilot Tests
Fix Committed
Undecided
Dan Chapman 

Bug Description

We'd love to be able to automate installations of image testing via the gui (unlike pre-seeding, etc). This bug will track progress and work. This is a demo of what we are talking about wanting to do, but was done via a different tool:

http://www.youtube.com/watch?v=Owdb8oMRT8o

description: updated
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

There is a proof of concept for this now. Try it out; this will be the basis for writing this testcase:

1) Boot into live-cd
2) bzr branch lp:~xnox/ubiquity/autopilot installer
3) cd installer
4) sudo cp bin/ubiquity-wrapper /usr/bin/ubiquity
5) sudo cp ./bin/ubiquity /usr/lib/ubiquity/bin/ubiquity
6) cd autopilot
7) In one terminal: ./run_ubiquity
8) In another terminal: ./autopilot run ubiquity

The single test should pass. It checks installer window title is "Install".

Revision history for this message
Carla Sella (carla-sella) wrote :

I tried on Saucy.
I first had to install python-autopilot, addin the ppa (sudo add-apt-repository ppa:autopilot/ppa) the sudo apt-get update and sudo apt-get install python-autopilot.
Oh, and before this had to open "Software & Updates" and turn everything on.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Per xnox;
< xnox> balloons: running "autopilot" normally will not work.
<xnox> balloons: one needs to launch autopilot from a wrapper script in that branch & also launch ubiquity via the other wrapper script.
<xnox> balloons: https://bazaar.launchpad.net/~xnox/ubiquity/autopilot/view/head:/autopilot/README
<xnox> balloons: there is integration required between ubiquity & autopilot. Both need to be run as root with exactly the same DBUS environmental variables.
<xnox> balloons: thus the two wrapper scripts. ./run_ubiquity starts ubiquity as root with a fresh session dbus ./autopilot launches autopilot as root with the same dbus and takes the PID of the running ubiquity.
<xnox> balloons: thus to run the test case one would open 2 terminals: start ./run_ubiquity in one, and then in another run all tests ./autopilot run ubiquity

Revision history for this message
Dan Chapman  (dpniel) wrote :

I'm gonna have a go at this one :)

Changed in ubuntu-autopilot-tests:
assignee: nobody → Daniel Chapman (dpniel)
status: New → In Progress
Revision history for this message
Dan Chapman  (dpniel) wrote :

This is my dev setup

http://pastebin.ubuntu.com/5739965/

I am just placing it here so i don't lose the link :-)

Elfy (elfy)
tags: added: xubuntu
Dan Chapman  (dpniel)
Changed in ubuntu-autopilot-tests:
status: In Progress → Fix Committed
tags: added: needs-autopilot-test
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.