diff options
author | xudan <xudan16@huawei.com> | 2019-02-27 03:46:32 -0500 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2019-02-27 03:52:51 -0500 |
commit | 346e28bf54f17354a7f784f57d3d52b9b91f22cd (patch) | |
tree | 8ae58002f3448bc993e5e05a64eab7653075e517 /etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh | |
parent | 05ffb18a9d045fe94e93e9fdae376939f5d12d0b (diff) |
Add a patch to Bottlenecks
This submit add a patch to Bottlenecks container created by Dovetail to change
source code in Yardstick container created by Bottlenecks itself.
The changes are:
1. Add SLA check to avoid the Nonetype exception
2. Let the target server be created before the host server in order to give
the target one more time to setup.
Change-Id: If988a33e4ae6fccd56b10547885b65aa3c019cca
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh')
-rwxr-xr-x | etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh b/etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh new file mode 100755 index 00000000..9e56ef5a --- /dev/null +++ b/etc/patches/bottlenecks/bugfix-add-ping-sla/apply.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +set -u + +cd /home/opnfv/bottlenecks +# without setting the user, git does not allow to create a commit +git config --global user.email "verified@opnfv.org" +git config --global user.name "Dovetail" + +git am $(dirname $0)/0001-Bugfix-add-patch-yardstick-container.patch + +cp testsuites/run_testsuite.py /usr/local/lib/python2.7/dist-packages/testsuites/run_testsuite.py + +exit 0 |