diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:23:41 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:24:35 +0000 |
commit | fd4d0d83f133772aa1e84d8a3af6f642f9c73b5c (patch) | |
tree | 01967552ad23437ce6890d7cf8bb381f913e7208 /autobuild.sh | |
parent | d29304c1b486c94970aff0631e0bf91c745b0ef9 (diff) | |
download | libguestfs-fd4d0d83f133772aa1e84d8a3af6f642f9c73b5c.tar.gz libguestfs-fd4d0d83f133772aa1e84d8a3af6f642f9c73b5c.tar.xz libguestfs-fd4d0d83f133772aa1e84d8a3af6f642f9c73b5c.zip |
autobuild: Skip some tests on Ubuntu.
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-x | autobuild.sh | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/autobuild.sh b/autobuild.sh index a0b288c2..efea8b39 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -3,18 +3,19 @@ PROJECT=libguestfs FEBOOTSTRAP_PATH=$HOME/d/febootstrap MAILTO=libguestfs@redhat.com +HOSTNAME="$(hostname -s)" #---------------------------------------------------------------------- # Helper functions. failed () { - mail -s "$(hostname -s) $PROJECT FAILED $1 $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT FAILED $1 $gitsha" $MAILTO < local-log } ok () { - mail -s "$(hostname -s) $PROJECT success $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT success $gitsha" $MAILTO < local-log } #---------------------------------------------------------------------- @@ -32,7 +33,7 @@ rm -f local-log cat > local-log <<EOF This is an automatic message generated by the builder on -$(hostname -s) for $PROJECT. Log files from the build +$HOSTNAME for $PROJECT. Log files from the build follow below. $(uname -a) @@ -63,6 +64,27 @@ make || { exit 1 } +# Tests that are skipped (note that these tests should be fixed). +case "$HOSTNAME" in + builder-ubuntu) + # get_e2uuid: /dev/vdc: [no error message] + # get_e2label: /dev/vda1: [no error message] + # Diagnosis: either mkjournal is not writing a UUID or blkid is + # unable to pick it up. + export SKIP_TEST_GET_E2UUID=1 + export SKIP_TEST_SET_E2UUID=1 + export SKIP_TEST_SET_E2LABEL=1 + + # Avoids: + # device-mapper: ioctl: unable to remove open device temporary-cryptsetup-661 + # device-mapper: remove ioctl failed: Device or resource busy + # guestfsd: error: Device lukstest is busy. + # Diagnosis: appears to be a bug in cryptsetup on Ubuntu. + # https://bugzilla.redhat.com/show_bug.cgi?id=527056 + export SKIP_TEST_LUKS_SH=1 + ;; +esac + # Run the tests. make check || { failed "tests" |