diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-02-17 15:36:06 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-02-17 15:36:06 +0100 |
commit | 5641b0248fe0781ee62fa3bc903f8db95e80b0c4 (patch) | |
tree | 89f09c800484ff128c956ce71a349eaba2837c0f /passes | |
parent | d8735b291365a2a6e8fb8c768f61ad41f0763f96 (diff) | |
download | yosys-5641b0248fe0781ee62fa3bc903f8db95e80b0c4.tar.gz yosys-5641b0248fe0781ee62fa3bc903f8db95e80b0c4.tar.bz2 yosys-5641b0248fe0781ee62fa3bc903f8db95e80b0c4.zip |
Option to expect no warnings
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/logger.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/passes/cmds/logger.cc b/passes/cmds/logger.cc index 30768980e..947b178c5 100644 --- a/passes/cmds/logger.cc +++ b/passes/cmds/logger.cc @@ -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); |