From 25f2fbce4b39383e2f045e0778b8307805649ea1 Mon Sep 17 00:00:00 2001 From: junxiawang Date: Fri, 29 May 2015 06:44:21 -0400 Subject: [PATCH] modify xcattest --- xCAT-test/xcattest | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index c70ba64e5..ba4862b59 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -632,9 +632,17 @@ sub getnodeattr { my ($node, $attr) = @_; my @output = runcmd("lsdef -t node -o $node -i $attr"); + my $t ; if($::RUNCMD_RC){ - return "Unknown"; - }else{ + # return "Unknown"; + foreach $t (1 .. 40) { + log_this("could not get node attr $attr "); + @output = runcmd("lsdef -t node -o $node -i $attr"); + last if ($::RUNCMD_RC == 0); + } + + } + if($::RUNCMD_RC == 0){ foreach my $output1 (@output){ if($output1 =~ /$attr=(\w.+)/){ log_this("$attr is $1");