lp:autotest

Created by Soren Hansen and last modified
Get this branch:
bzr branch lp:autotest

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Soren Hansen
Project:
autotest
Status:
Development

Import details

Import Status: Invalid

Last successful import was .

Import started on pear and finished taking 2 minutes — see the log
Import started on russkaya and finished taking 2 minutes — see the log
Import started on galapagos and finished taking 2 minutes — see the log
Import started on neumayer and finished taking 2 minutes — see the log

Whiteboard

branch no longer exists

Recent revisions

4691. By lmr

job.py: check mounted partitions across reboots by uuid

On my system, when I booted from a 2.6.29 kernel to a 2.6.30 kernel, the
scan order of devices changed, and what was sda became sdc. This
confused autotest, which then printed out the following error and failed
the job:

ABORT build reboot.verify_config timestamp=1287536803
localtime=Oct 19 21:06:43 mounted partitions are different after
reboot (old entries: set([('/dev/sdc3', '/'), ('/dev/sdc1', '/boot'),
('/dev/sdc2', None)]), new entries: set([('/dev/sda3', '/'),
('/dev/sda1', '/boot'), ('/dev/sda2', None)])) END ABORT

I modified job.py to check the uuids of the mounted file systems instead
of the devices themselves. This resolved the issue in my environment.

Changes from v1:
- Refactored the steps to get the mount info
- Replaced the subprocess call with autotest API

Signed-off-by: Jeff Moyer <email address hidden>
Signed-off-by: Lucas Meneghel Rodrigues <email address hidden>

4690. By lmr

KVM test: Only change cdrom_cd1/floppy when it's assigned in config file

When 'cdrom_cd1' or 'floppy' is not assigned in config file,
self.cdrom_cd1 or self.floppy would become $KVM_TEST_DIR, it causes
unattend.py fail when calling clean_old_image(..)

Signed-off-by: Amos Kong <email address hidden>

4689. By lmr

KVM test: kvm_monitor.py: fix cmd_qmp()'s docstring

Signed-off-by: Michael Goldish <email address hidden>

4688. By lmr

KVM test: kvm_monitor.py: use select whenever possible

As suggested by Luiz Capitulino, use select() whenever possible to minimize
delays.

(_data_available() is a wrapper for select().)

Signed-off-by: Michael Goldish <email address hidden>

4687. By lmr

server/frontend.py: Add support for passing in a kernel command line

Signed-off-by: Gregory Smith <email address hidden>

4686. By lmr

Add some site-specific parsing utilities

Add some site-specific parsing utilities.

Signed-off-by: James Ren <email address hidden>

4685. By lmr

Allow file system partition tests to optionally defer post-test fsck

Allow file system partition tests to optionally defer post-test fsck's to a slightly later point in the test script, for more control over container memory during the fsck.

Signed-off-by: Duane Sand <email address hidden>

4684. By lmr

Introduce QMP basic test-suite

This commit introduces a suite which checks that QMP conforms to its
specification (which is file QMP/qmp-spec.txt in QEMU's source tree).

It's important to note that this suite does _not_ do command or
asynchronous messages testing, as each command or asynchronous message
has its own specification, and thus should be tested separately.

This suite is limited to test that the basic protocol works as specified,
that is, to ensure that the greeting message, success and error responses
contain the basic information the spec says they do. Additionally,
several errors conditions at the protocol level are also tested.

Signed-off-by: Luiz Capitulino <email address hidden>

4683. By lmr

QMPMonitor: Introduce the get_greeting() method

It returns the QMP's greeting message as sent by the monitor.

Please, note that this commit also changes the QMPMonitor's constructor
to store the full greeting message (it currently stores only its
contents).

This new method is going to be used by the QMP test-suite, which fully
checks the greeting message.

Signed-off-by: Luiz Capitulino <email address hidden>

4682. By lmr

KVM test: kvm_monitor.py: add __str__() method to QMPCmdError exception

Signed-off-by: Michael Goldish <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.