From 5ba574ef7d3cf6af700fc9d7d92ce68b662b0051 Mon Sep 17 00:00:00 2001 From: besawn <38794505+besawn@users.noreply.github.com> Date: Tue, 22 Feb 2022 12:55:50 -0500 Subject: [PATCH] Revert "Added syntax checking to xcattest" This reverts commit b4f8a9797dd78da740f30b5ee6ae5400de37e796. --- xCAT-test/xcattest | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index 6c2ffe27a..47ebfa45f 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -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);