Option to expect no warnings
This commit is contained in:
@@ -60,6 +60,9 @@ struct LoggerPass : public Pass {
|
||||
log(" -expect <type> <regex> <expected_count>\n");
|
||||
log(" expect log,warning or error to appear. In case of error return code is 0.\n");
|
||||
log("\n");
|
||||
log(" -expect-no-warnings\n");
|
||||
log(" gives error in case there is at least one warning.\n");
|
||||
log("\n");
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design * design) YS_OVERRIDE
|
||||
@@ -166,6 +169,10 @@ struct LoggerPass : public Pass {
|
||||
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-expect-no-warnings") {
|
||||
log_expect_no_warnings = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design, false);
|
||||
|
||||
Reference in New Issue
Block a user