mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-02 20:31:22 +00:00
logger: allow multiple regexes for -expect error
This commit is contained in:
parent
051c00e7db
commit
d3894caf25
1 changed files with 0 additions and 2 deletions
|
@ -153,8 +153,6 @@ struct LoggerPass : public Pass {
|
|||
std::string type = args[++argidx];
|
||||
if (type!="error" && type!="warning" && type!="log")
|
||||
log_cmd_error("Expect command require type to be 'log', 'warning' or 'error' !\n");
|
||||
if (type=="error" && log_expect_error.size()>0)
|
||||
log_cmd_error("Only single error message can be expected !\n");
|
||||
std::string pattern = args[++argidx];
|
||||
if (pattern.front() == '\"' && pattern.back() == '\"') pattern = pattern.substr(1, pattern.size() - 2);
|
||||
int count = atoi(args[++argidx].c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue