2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Better diagnostic message from nodeset_runimg testcase

This commit is contained in:
Mark Gurevich 2020-04-20 10:13:33 -04:00
parent 592b6ed1b4
commit 86638eaef7

View File

@ -261,13 +261,15 @@ sub testxdsh {
$checkstring = "destiny=shell";
$checkfile = "/proc/cmdline";
}
my $xdsh_command="xdsh $noderange -t 2 cat $checkfile 2>&1|grep $checkstring";
if (($value == 1) || ($value == 2) || ($value == 3)) {
`xdsh $noderange -t 2 cat $checkfile 2>&1|grep $checkstring `;
`$xdsh_command`;
if ($?) {
foreach (1 .. 10) {
my @i = (1..10);
for (@i) {
sleep 300;
send_msg(1,"try to run xdsh $noderange to check the results again");
`xdsh $noderange -t 2 cat $checkfile 2>&1| grep $checkstring `;
send_msg(1,"[$_] Running \"$xdsh_command\" to check the results again");
`$xdsh_command`;
last if ($? == 0);
}
}