diff options
author | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-10-14 14:41:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-14 14:41:41 +0000 |
commit | a1378b700a9234e7fcbf77c7890030b306bc65ea (patch) | |
tree | d8e1b3bfdf484399d4d4aa572612c635fe3e05ea /ci/run_tasks.sh | |
parent | 3bca848a141ba2728d036a1423b514027b0e4b98 (diff) | |
parent | d03858bbac357b6d705c7137d2d20d5c8e34ecc6 (diff) |
Merge "Docker container for Yardstick CI"
Diffstat (limited to 'ci/run_tasks.sh')
-rw-r--r-- | ci/run_tasks.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/ci/run_tasks.sh b/ci/run_tasks.sh deleted file mode 100644 index 27ccb3a3c..000000000 --- a/ci/run_tasks.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -############################################################################## -# Copyright (c) 2015 Ericsson AB and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -# Run yardstick tasks back-to-back -# This script is called from yardstick-{pod} job and decides which tasks -# are executed as part of that job. - - -# verify that virtual environment is activated -# assumes the virtual environment has been created as described in README.rst -if [[ ! $(which python | grep venv) ]]; then - echo "Unable to activate venv...Exiting" - exit 1 -fi - -EXIT_CODE=0 - -# Define tasks to be run -TASK_FILE_NAMES[0]='samples/ping.yaml' -TASK_FILE_NAMES[1]='samples/iperf3.yaml' -TASK_FILE_NAMES[2]='samples/pktgen.yaml' -TASK_FILE_NAMES[3]='samples/fio.yaml' - -# Execute tasks -for TASK_FILE in ${TASK_FILE_NAMES[@]} -do - echo "Executing task from file: $TASK_FILE" - yardstick -d task start $TASK_FILE - - if [ $? -ne 0 ]; then - EXIT_CODE=1 - fi -done - -exit $EXIT_CODE
\ No newline at end of file |