2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-26 21:20:29 +00:00

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:
hu-weihua
2016-05-29 22:11:32 -04:00
parent 16b4989fe5
commit 840f8cef6b

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;
}