2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-07 17:02:34 +00:00

Merge pull request #6718 from gurevichmark/testcse_nodeset

Improve genesistest.pl script
This commit is contained in:
cxhong
2020-05-28 16:34:14 -04:00
committed by GitHub

View File

@@ -250,6 +250,7 @@ sub testxdsh {
print "The input parameter is $value \n";
my $checkstring;
my $checkfile;
my $nodestatus;
if ($value == 1) {
#mean runcmd test using test scripts genesistest.pl writes
$checkstring = "testcmd";
@@ -268,7 +269,8 @@ sub testxdsh {
my @i = (1..10);
for (@i) {
sleep 300;
send_msg(1,"[$_] Running \"$xdsh_command\" to check the results again");
$nodestatus=`lsdef $noderange -i status -c 2>&1 | awk -F'=' '{print \$2}'`;
send_msg(1,"[$_] Running \"$xdsh_command\" to check results. Node status: $nodestatus");
`$xdsh_command`;
last if ($? == 0);
}