aboutsummaryrefslogtreecommitdiffstats
path: root/etc/infra
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-04-19 14:58:38 +0100
committerEmma Foley <emma.l.foley@intel.com>2018-06-22 17:38:15 +0000
commit745db76a4cc99a1597a3570ecdc063d549839a15 (patch)
tree2cf4cc77089632d9b6e9e2fdd65bea293f30a891 /etc/infra
parent2c77f9d9559b09299f8ef5cc3d07c847c685d79c (diff)
Add active wait function
Added function "wait_until_true". This function will make an active wait until the predicate passed as an argument returns True. If the timeout expires, the function will raise a generic exception or a user defined one passed as an argument. This function will be used in YARDSTICK-1127. JIRA: YARDSTICK-1128 Change-Id: I9854e465ac6b586bf4be39ab4b266d5625b39e30 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from 099108aab37d1fae1b27f4e2e20136c234df1a52)
Diffstat (limited to 'etc/infra')
0 files changed, 0 insertions, 0 deletions
color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Copyright (c) 2017 Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- hosts: yardstick
  vars_files:
    - yardstick_config.yml
  vars:
    YARD_IMG_ARCH: amd64
    HW_FW_TYPE: "{{ HW_FW_TYPES[YARD_IMG_ARCH] }}"
    HW_FW_TYPES:
      amd64: ''
      arm64: 'uefi'
    DEPLOY_VARS:
      'lxd':
        IMAGE_COMMAND: yardstick-img-lxd-modify
        IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.img"
      'default':
        IMAGE_COMMAND: yardstick-img-modify
        IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.tar.gz"

  roles:
    - role: add_fuel_jumphost
      when: "INSTALLER_TYPE == 'fuel'"
    - role: detect_fuel_arch
      when: "INSTALLER_TYPE == 'fuel'"

- include: build_yardstick_image.yml
  vars:
    img_property: normal

- include: image_uploaders/upload_yardstick_image.yml