2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Modify 2 bugs for xcattest

This commit is contained in:
hu-weihua 2017-05-31 01:26:43 -04:00
parent 9bd0054d10
commit 78bc818748

View File

@ -1175,11 +1175,11 @@ sub run_case {
#to run singal line command
$cmd = getfunc($cmd->[0]);
@output = &runcmd($cmd);
$cmd->[0] = getfunc($cmd->[0]);
@output = &runcmd($cmd->[0]);
$rc = $::RUNCMD_RC;
log_this($running_log_fd, "RUN:$cmd [$runstartstr]");
push(@caselog, "RUN:$cmd [$runstartstr]");
log_this($running_log_fd, "RUN:$cmd->[0] [$runstartstr]");
push(@caselog, "RUN:$cmd->[0] [$runstartstr]");
} else {
#to run multiple lines command
@ -1275,7 +1275,8 @@ sub run_case {
if ($cmdcheck) {
&runcmd($cmdcheck);
$rc = $::RUNCMD_RC;
if ($rc == 1) {
if ($rc != 0 ) {
$failflag = 1;
log_this($running_log_fd, "CHECK:output $cmdcheck\t[Failed]");
push(@caselog, "CHECK:output $cmdcheck\t[Failed]");
} elsif ($rc == 0) {