2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

Merge pull request #1226 from hu-weihua/xcattest1124

fix bug 1224 xcattest returns Use of uninitialized value if the case fails and there is not stop label defined
This commit is contained in:
tingtli
2016-05-30 10:29:58 +08:00

View File

@@ -868,7 +868,7 @@ sub runcase
if($failed){
$failnum = $failnum + 1;
log_error(@record);
if($$case{stop} =~ /^yes$/){
if(defined ($$case{stop}) && ($$case{stop} =~ /^yes$/)){
$stop_to_keep_env=1;
last;
}