Add Attn config option for clearing Attn Interrupts
Added attn config option
Added UT for attn config object
Added UT for cli that uses attn config object
Signed-off-by: austinfcui <austinfcui@gmail.com>
Change-Id: I0e30ebf4d94de676814bf5e173691c4d1ee362cb
diff --git a/cli.cpp b/cli.cpp
index 8ab8023..8129821 100644
--- a/cli.cpp
+++ b/cli.cpp
@@ -98,5 +98,18 @@
{
o_config->setFlag(attn::dfltTi);
}
+
+ setting = getCliSetting(i_begin, i_end, "--clrattnintr");
+ if (nullptr != setting)
+ {
+ if (std::string("off") == setting)
+ {
+ o_config->clearFlag(attn::enClrAttnIntr);
+ }
+ if (std::string("on") == setting)
+ {
+ o_config->setFlag(attn::enClrAttnIntr);
+ }
+ }
}
}