Bug fix:Bottlenecks job failed. 91/43691/2
authorliyin <liyin11@huawei.com>
Sat, 30 Sep 2017 02:37:21 +0000 (10:37 +0800)
committerAce Lee <liyin11@huawei.com>
Sat, 30 Sep 2017 08:10:01 +0000 (08:10 +0000)
This patch is to fix the bottlenecks rc file.
shown the problem:
touch: cannot touch '/tmp/admin_rc.sh': Permission denied
releng have chown code.
We will delete this file if have problem in fetch_os script

Change-Id: I9f53f9243697c3faca2b4d09a5847253a70f9686
Signed-off-by: liyin <liyin11@huawei.com>
jjb/bottlenecks/bottlenecks-run-suite.sh

index 811f9d5..f0b8a40 100644 (file)
@@ -27,6 +27,7 @@ BOTTLENECKS_CONFIG=/tmp
 
 if [[ $SUITE_NAME == *posca* ]]; then
     POSCA_SCRIPT=/home/opnfv/bottlenecks/testsuites/posca
+    sudo rm -f ${OPENRC}
 
     # Preparing OpenStack RC and Cacert files
     echo "BOTTLENECKS INFO: fetching os credentials from $INSTALLER_TYPE"