From 840f8cef6bfd195fb2fd5e826fa2d5a6cff4f07e Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Sun, 29 May 2016 22:11:32 -0400 Subject: [PATCH] fix bug 1224 xcattest returns Use of uninitialized value if the case fails and there is not stop label defined --- xCAT-test/xcattest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index 5adc90aa3..a51798fd1 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -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; }