fix if statement for tempest 19/43019/1
authorSandra Biton <sandra.biton@hpe.com>
Wed, 3 Aug 2016 08:20:47 +0000 (11:20 +0300)
committerSandra Biton <sandra.biton@hpe.com>
Wed, 3 Aug 2016 08:20:47 +0000 (11:20 +0300)
Change-Id: Ie462447b6147792ce67224292e593c7ff52dadb9
Signed-off-by: Sandra Biton <sandra.biton@hpe.com>
jjb/integration/include-raw-integration-deploy-openstack-run-test.sh

index b14d30d37740a5758d2284cd2a54a31e9dd1f11d..c7f3eac632d7feef8c183ce9bfafaba5fc1a9bbc 100644 (file)
@@ -445,7 +445,7 @@ pybot -N ${TESTPLAN} -c critical -e exclude -v BUNDLEFOLDER:${BUNDLEFOLDER} -v W
 
 echo "Tests Executed"
 DEVSTACK_TEMPEST_DIR="/opt/stack/tempest"
-if $(ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '[ -f ${DEVSTACK_TEMPEST_DIR}/.testrepository/0]"); then # if Tempest results exist
+if $(ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '[ -f ${DEVSTACK_TEMPEST_DIR}/.testrepository/0 ]'"); then # if Tempest results exist
     ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '${DEVSTACK_TEMPEST_DIR}/.tox/tempest/bin/subunit-1to2 < ${DEVSTACK_TEMPEST_DIR}/.testrepository/0 > ${DEVSTACK_TEMPEST_DIR}/subunit_log.txt'"
     ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '${DEVSTACK_TEMPEST_DIR}/.tox/tempest/bin/python ${DEVSTACK_TEMPEST_DIR}/.tox/tempest/lib/python2.7/site-packages/os_testr/subunit2html.py ${DEVSTACK_TEMPEST_DIR}/subunit_log.txt ${DEVSTACK_TEMPEST_DIR}/tempest_results.html'"
     scp ${OPENSTACK_CONTROL_NODE_IP}:${DEVSTACK_TEMPEST_DIR}/tempest_results.html ${WORKSPACE}/