diff options
-rwxr-xr-x | ci/yardstick-verify | 13 |
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 } |