2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #6825 from gurevichmark/genesistest_debug2

Improve genesistest script(2)
This commit is contained in:
cxhong 2020-09-17 11:00:06 -04:00 committed by GitHub
commit 7e9f608230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,9 +115,9 @@ if ($genesis_runcmd_test) {
send_msg(2, "[$$]:Running nodeset NODE runcmd test...............");
my $testxdsh_value = &rungenesiscmd(&get_arch);
if (&testxdsh($testxdsh_value)) {
send_msg(0, "[$$]:Could not verify test results using xdsh($testxdsh_value) on first attempt, will try again...............");
send_msg(0, "[$$]:Could not verify runcmd test results using xdsh($testxdsh_value) on first attempt, will try again...............");
if (&testxdsh($testxdsh_value)) {
send_msg(0, "[$$]:Could not verify test results using xdsh($testxdsh_value) on second attempt, giving up...............");
send_msg(0, "[$$]:Could not verify runcmd test results using xdsh($testxdsh_value) on second attempt, giving up...............");
exit 1;
}
}
@ -128,9 +128,13 @@ if ($genesis_runcmd_test) {
##################################
if ($genesis_runimg_test) {
send_msg(2, "[$$]:Run nodeset NODE runimage test...............");
if (&testxdsh(&rungenesisimg)) {
send_msg(0, "[$$]:Could not verify test results using xdsh ...............");
exit 1;
my $testxdsh_value = &rungenesisimg;
if (&testxdsh($testxdsh_value)) {
send_msg(0, "[$$]:Could not verify runimage test results using xdsh($testxdsh_value) on first attmpt, will try again...............");
if (&testxdsh($testxdsh_value)) {
send_msg(0, "[$$]:Could not verify runimage test results using xdsh($testxdsh_value) on second attempt, giving up...............");
exit 1;
}
}
send_msg(2, "[$$]:Running runimage test success...............");