aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-12-09 17:46:08 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-12-11 15:21:48 +0000
commitfc4085f3c62caa32da6f0f7d85d84dcaa0dda6e9 (patch)
tree2aaec24c5979a3ce42f4808a88732854bf40de5b /ci
parent2a690b509d6051fe86ad2b2d346a27f2cdde2e1c (diff)
Create yardstick nova flavor for CI testing
Change-Id: I8aa3128fae8058551df3d1213e2eb234960477fb Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/yardstick-verify13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/yardstick-verify b/ci/yardstick-verify
index be1c1250e..1b045cdd3 100755
--- a/ci/yardstick-verify
+++ b/ci/yardstick-verify
@@ -76,6 +76,8 @@ cleanup()
echo "Deleting image $image..."
glance image-delete $image || true
done
+
+ nova flavor-delete yardstick-flavor &> /dev/null || true
}
exitcode=""
@@ -122,6 +124,16 @@ build_yardstick_image()
fi
}
+create_nova_flavor()
+{
+ if ! nova flavor-list | grep -q yardstick-flavor; then
+ echo
+ echo "========== Create nova flavor =========="
+ # Create the nova flavor used by some sample test cases
+ nova flavor-create yardstick-flavor 100 512 3 1
+ fi
+}
+
load_cirros_image()
{
echo
@@ -291,6 +303,7 @@ main()
build_yardstick_image
load_yardstick_image
load_cirros_image
+ create_nova_flavor
run_test
}