summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-09-11 01:26:25 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-09-11 01:26:25 +0000
commit228cb344716e6d153eb0dfb43db83af1088d458f (patch)
tree748e730ecee6c3a472a3567b86c16ad4011c3aac /tests
parent3d462aaa3d87a2298cf1f9a859e996d708f917fd (diff)
Bugfix: cleanup command not found
JIRA: YARDSTICK-808 This bug is from CI, see log: https://build.opnfv.org/ci/view/yardstick/job/yardstick-joid-baremetal-daily-master/1560/consoleFull The reason is we don not have cleanup function in the script. It is in another script clean_image.sh. so I remove it, and call clean_image.sh when in openstack scenario. Change-Id: I844cd9e8f0b6e1e8ff7a6094be37789d35a2c345 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ci/yardstick-verify4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ci/yardstick-verify b/tests/ci/yardstick-verify
index ca8a0b27a..f3e7a49e3 100755
--- a/tests/ci/yardstick-verify
+++ b/tests/ci/yardstick-verify
@@ -87,7 +87,9 @@ error_exit()
exitcode=$rc
fi
- cleanup
+ if [[ "${DEPLOY_SCENARIO:0:2}" == 'os' ]];then
+ source "${YARDSTICK_REPO_DIR}/tests/ci/clean_images.sh"
+ fi
echo "Exiting with RC=$exitcode"