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

Revert "Added syntax checking to xcattest"

This reverts commit b4f8a9797d.
This commit is contained in:
besawn
2022-02-22 12:55:50 -05:00
parent c9a1ef1d52
commit 5ba574ef7d

View File

@@ -1447,11 +1447,6 @@ sub run_case {
|| (($op eq '==') && ($lvalue ne $rvalue))
|| (($op eq '!=') && ($lvalue eq $rvalue))) {
$failflag = 1;
} elsif (($op ne '=~') && ($op ne '!~') && ($op ne '==') && ($op ne '!=')) {
$failflag = 1;
log_this($running_log_fd, "CHECK:output unrecognized operator: $op\t[Failed]");
push(@caselog, "CHECK:output unrecognized operator: $op\t[Failed]");
last;
}
if ($failflag) {
log_this($running_log_fd, "CHECK:output $op $rvalue\t[Failed]");
@@ -1496,13 +1491,7 @@ sub run_case {
} else {
log_this($running_log_fd, "CHECK:output $op $rvalue\t[Pass]");
push(@caselog, "CHECK:output $op $rvalue\t[Pass]");
}
} else {
$failflag = 1;
log_this($running_log_fd, "Unrecognized testcase syntax: CHECK:$check\t[Failed]");
push(@caselog, "Unrecognized testcase syntax: CHECK:$check\t[Failed]");
}
}
} } }
foreach my $cmdcheck (@{ $cases_ref->[ $case_name_index_map_ref->{$case} ]->{cmdcheck}->[$j] }) {
if ($cmdcheck) {
&runcmd($cmdcheck);