Fix integration error when no role of heat_stack_owner 57/44657/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Tue, 10 Oct 2017 11:36:44 +0000 (19:36 +0800)
committerxiaodong shang <shang.xiaodong@zte.com.cn>
Tue, 10 Oct 2017 11:44:27 +0000 (11:44 +0000)
If there is no role of heat_stack_owner in openstack, integration
will be error, the patch will fix it.

JIRA: PARSER-162

Change-Id: I74d4e70153a312c1a64c75e0ff956b7ab2219adf
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tests/functest_run.sh

index 3afbd56..d8aab32 100755 (executable)
@@ -115,7 +115,7 @@ create_parser_user_and_project() {
             openstack ${debug} role add heat_stack_owner --user ${PARSER_USER} \
                                --project ${PARSER_PROJECT}
             echo "  Grant user ${PARSER_USER} the role of heat_stack_owner in project ${PARSER_PROJECT} successful."
-        }
+        } || true
     }
 
 }