You did not pass the ID to the override command.
The correct usage is here:
function void set_report_severity_id_override(uvm_severity cur_severity, string id,
uvm_severity new_severity);
The ID is the first argument in your UVM_WARNING.
Hi Thanks for your comments.
Since `uvm_warning is using “get_type_name()” as the first argument, based on my logs, the warning displayed the ID of “[my_test]”, which is essentially my test name.
For example:
UVM_WARNING xxx.sv(123) @ 123 ns: uvm_test_top [my_test] Waiting for message …
I have tried with the following but it is still not masking this UVM_WARNING:
virtual function void end_of_elaboration_phase(uvm_phase phase);
Your remaining problem is you calling
**uvm_top.**set_report_severity_id_override() which is one level higher than my_test. Drop the
uvm_top. prefix. Note: uvm_top is deprecated in UVM 1.2 and removed from IEEE UVM 1800.1. You would now use uvm_root::get().