I have one regression script.
if log have ERROR message then it will give status as FAIL. (otherwise it will give PASS).
but here its grepping UVM_ERROR also.
so how to exclude UVM_ERROR word in this script.?
.
.
.
system ("grep -F 'ERROR' ./$testcase.log > Temp.v ");
open (TEMP , "Temp.v");
my @Temp = <TEMP>; my $error = @Temp;
if ($error) {
system ("mv $testcase.log ../regression/$testcase/.");
print STATUS "STATUS:\t FAIL\n";
}
else {
print STATUS "STATUS:\t PASS\n";
}
Thanks,