~ubuntu-branches/ubuntu/karmic/libvirt/karmic-proposed

« back to all changes in this revision

Viewing changes to tests/undefine

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-02-11 01:01:42 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090211010142-8zrm7z1u6ryfhkiq
Tags: 0.6.0-1ubuntu1
* Merge with Debian experimental. Remaining changes:
  - debian/control:
    + Don't build-depend on QEmu.
    + Add "XS-Debian-" prefix to Debian's Vcs headers.
    + Bump bridge-utils, dnsmasq-base, netcat-openbsd, and iptables
      to Depends of libvirt-bin.
    + s/interract/interact/g
    + Add versioned Conflicts/Replaces to libvirt0 for libvirt0-dbg,
      since we used to ship them as such.
  - Rename libvirt group to libvirtd.
  - 0005-delayed_iff_up_bridge.patch: Don't try to bring up the bridge
    before at least one interface has been added to it.
  - dont_clobber_existing_bridges.patch: Assign the name of the virtual
    bridge dynamically to avoid interfering with existing bridges.
  - better_default_uri_virsh.patch: Default to qemu:///system if the
    user has write access to the libvirt socket, otherwise
    qemu:///session.
  - We call libxen-dev libxen3-dev, so change all references.
  - Included (but did not enable) opennebula patch (since it's not in
    main yet).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# (at your option) any later version.
10
10
 
11
11
# This program is distributed in the hope that it will be useful,
12
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# but WITHEXP ANY WARRANTY; without even the implied warranty of
13
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
14
# GNU General Public License for more details.
15
15
 
32
32
libvir: Test error : internal error Domain 'test' is still running
33
33
error: Failed to undefine domain test
34
34
EOF
35
 
compare out exp || fail=1
 
35
compare exp out || fail=1
36
36
 
37
37
# A different diagnostic when specifying a domain ID
38
38
virsh -q -c test:///default undefine 1 > out 2>&1
41
41
error: a running domain like 1 cannot be undefined;
42
42
to undefine, first shutdown then undefine using its name or UUID
43
43
EOF
44
 
compare out exp || fail=1
 
44
compare exp out || fail=1
45
45
 
46
46
# Succeed, now: first shut down, then undefine, both via name.
47
47
virsh -q -c test:///default 'shutdown test; undefine test' > out 2>&1
50
50
Domain test is being shutdown
51
51
Domain test has been undefined
52
52
EOF
53
 
compare out exp || fail=1
 
53
compare exp out || fail=1
54
54
 
55
55
(exit $fail); exit $fail