2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Improve genesistest.pl script

This commit is contained in:
Mark Gurevich 2020-05-27 16:55:27 -04:00
parent 1d72ebfd03
commit e6f84d2281

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