2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Refine test case: nodeset_cmdline, nodeset_runimage, nodeset_shell

This commit is contained in:
junxiawang
2017-06-21 05:02:53 -04:00
parent d8e2303b05
commit d038c61851

View File

@@ -77,6 +77,7 @@ if ($check_genesis_file) {
}
my $master=`lsdef -t site -i master -c 2>&1 | awk -F'=' '{print \$2}'`;
if (!$master) { $master=hostname(); }
chomp($master);
print "master is $master\n";
####################################
@@ -260,7 +261,7 @@ sub testxdsh {
`xdsh $noderange -t 2 cat $checkfile 2>&1|grep $checkstring `;
if ($?) {
foreach (1 .. 10) {
`sleep 300`;
sleep 300;
send_msg(1,"try to run xdsh to check the results again");
`xdsh $noderange -t 2 cat $checkfile 2>&1| grep $checkstring `;
last if ($? == 0);