~ubuntu-branches/ubuntu/vivid/autopkgtest/vivid

« back to all changes in this revision

Viewing changes to tools/adt-setup-vm

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2015-01-05 18:09:03 UTC
  • mfrom: (110.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20150105180903-4d57aiww7bq2glqn
Tags: 3.9
Improvements:
* Add "snappy" ssh setup script to run tests in an Ubuntu Snappy
  (http://www.ubuntu.com/snappy) testbed in QEMU. This uses a given image
  with -i/--image, or constructs a temporary one using ubuntu-device-flash
  (which caches its downloads and is fast).
* adt-run autopkgtest: Install ubuntu-device-flash and qemu-kvm if
  available, to run the snappy ssh script tests under autopkgtest in Ubuntu.
* ssh setup script "reboot" commands can now simply "exit 10" if they want
  adt-run to just call "reboot" through ssh, instead of having a custom
  implementation.

Bug fixes:
* tools/adt-setup-vm: Avoid debconf prompts during dist-upgrade.
* adt-virt-ssh: Wait for ssh to become available before checking for sudo.
  Fixes root capability detection for setup scripts which don't already wait
  for ssh themselves.
* VirtSubproc.cmd_reboot: Avoid multi-line shell command so that this also
  gets along with the ssh runner.
* Fix FileNotFoundError if built tree does not have a debian/changelog file.
  Simply skip detection of source package version in this case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
# upgrade, install some necessary packages
94
94
chroot "$root" apt-get update
95
 
[ "${ADT_SETUP_VM_UPGRADE:-}" = false ] || chroot "$root" apt-get -y dist-upgrade
 
95
[ "${ADT_SETUP_VM_UPGRADE:-}" = false ] || DEBIAN_FRONTEND=noninteractive chroot "$root" apt-get -y dist-upgrade
96
96
 
97
97
if [ "${mirror_rel%ubuntu*}" != "$mirror_rel" ]; then
98
98
    # provides kmods like scsi_debug or mac80211_hwsim