mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 05:11:12 +00:00
Refine test case: nodeset_cmdline, nodeset_runimage, nodeset_shell
This commit is contained in:
@@ -2,28 +2,31 @@ start:nodeset_shell
|
||||
description: verify could log in genesis shell
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -s ;if [[ $? -eq 0 ]];then exit 0 ;else cat /var/log/consoles/$$CN; cat /tmp/genesistestlog/*;exit 1;fi
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -s
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -c
|
||||
check:rc==0
|
||||
cmd:cat /tmp/genesistestlog/*
|
||||
end
|
||||
|
||||
start:nodeset_cmdline
|
||||
description:verify could run cmdline successfully
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -d;if [[ $? -eq 0 ]];then exit 0 ;else cat /var/log/consoles/$$CN;cat /tmp/genesistestlog/*;exit 1;fi
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -d
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -c
|
||||
check:rc==0
|
||||
cmd:cat /tmp/genesistestlog/*
|
||||
end
|
||||
|
||||
start:nodeset_runimg
|
||||
description:verify runimg could work
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -i;if [[ $? -eq 0 ]];then exit 0 ;else cat /var/log/consoles/$$CN;cat /tmp/genesistestlog/*;exit 1;fi
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -i
|
||||
check:rc==0
|
||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -c
|
||||
check:rc==0
|
||||
cmd:cat /tmp/genesistestlog/*
|
||||
end
|
||||
|
@@ -195,7 +195,7 @@ sub rungenesiscmd {
|
||||
}
|
||||
`rinstall $noderange "runcmd=cmdtest,shell"`;
|
||||
if ($?) {
|
||||
send_msg(0, "rinstall noderange shell failed for runcmd test");
|
||||
send_msg(0, "nodeset noderange shell failed for runcmd test");
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
@@ -257,10 +257,12 @@ sub testxdsh {
|
||||
$checkfile = "/proc/cmdline";
|
||||
}
|
||||
if (($value == 1) || ($value == 2) || ($value == 3)) {
|
||||
`xdsh $noderange -t 2 cat $checkfile |grep $checkstring`;
|
||||
`xdsh $noderange -t 2 cat $checkfile 2>&1|grep $checkstring `;
|
||||
if ($?) {
|
||||
foreach (1 .. 1500) {
|
||||
`xdsh $noderange -t 2 cat $checkfile | grep $checkstring`;
|
||||
foreach (1 .. 10) {
|
||||
`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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user