Skip to content

Commit 264aba5

Browse files
author
Dean Troyer
committed
Checkout tests and download image file
1 parent b0e57cf commit 264aba5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tools/build_libvirt.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cleanup() {
3131
trap 2; kill -2 $$
3232
}
3333

34-
trap cleanup SIGHUP SIGINT SIGTERM
34+
trap cleanup SIGHUP SIGINT SIGTERM SIGQUIT
3535

3636
# Echo commands
3737
set -o xtrace
@@ -165,6 +165,7 @@ git_clone $NOVACLIENT_REPO $COPY_DIR/$DEST/python-novaclient $NOVACLIENT_BRANCH
165165
git_clone $OPENSTACKX_REPO $COPY_DIR/$DEST/openstackx $OPENSTACKX_BRANCH
166166
git_clone $KEYSTONE_REPO $COPY_DIR/$DEST/keystone $KEYSTONE_BRANCH
167167
git_clone $NOVNC_REPO $COPY_DIR/$DEST/noVNC $NOVNC_BRANCH
168+
git_clone $CITEST_REPO $COPY_DIR/$DEST/openstack-integration-tests $CITEST_BRANCH
168169

169170
# Back to devstack
170171
cd $TOP_DIR
@@ -409,6 +410,15 @@ umount $ROOTFS/dev
409410
chroot $ROOTFS dpkg-reconfigure openssh-server
410411
sed -e 's/^PasswordAuthentication.*$/PasswordAuthentication yes/' -i $ROOTFS/etc/ssh/sshd_config
411412

413+
# Pre-load an image for testing
414+
UEC_NAME=$DIST_NAME-server-cloudimg-amd64
415+
CIVMDIR=${ROOTFS}${DEST}/openstack-integration-tests/include/sample_vm
416+
if [ ! -e $CIVMDIR/$UEC_NAME.tar.gz ]; then
417+
mkdir -p $CIVMDIR
418+
(cd $CIVMDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME.tar.gz;
419+
tar xzf $UEC_NAME.tar.gz;)
420+
fi
421+
412422
# Unmount
413423
umount $ROOTFS || echo 'ok'
414424
ROOTFS=""

0 commit comments

Comments
 (0)