summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-18 21:43:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-18 21:43:14 -0500
commit72ca6added88259f9b456810bdd7300c2037b23c (patch)
treef783223d22d7dca95d2109ca2dc90c84ec047628 /hscript/meta.cc
parent5ff493fde203f36b71717439b26b3b6a735528d6 (diff)
downloadhorizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.gz
horizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.bz2
horizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.xz
horizon-72ca6added88259f9b456810bdd7300c2037b23c.zip
hscript: Mark more stuff as unreachable for LCOV
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index b2d7010..0248af9 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -121,7 +121,7 @@ bool Hostname::execute(ScriptOptions opts) const {
if(opts.test(Simulate)) {
std::cout << "printf 'dns_domain_lo=\"" << domain
<< "\"\\" << "n' >> /target/etc/conf.d/net" << std::endl;
- } else {
+ } else { /* LCOV_EXCL_START */
std::ofstream net_conf_f("/target/etc/conf.d/net");
if(!net_conf_f) {
output_error("installfile:" + std::to_string(this->lineno()),
@@ -130,7 +130,7 @@ bool Hostname::execute(ScriptOptions opts) const {
return false;
}
net_conf_f << "dns_domain_lo\"" << domain << "\"" << std::endl;
- }
+ } /* LCOV_EXCL_STOP */
}
return true;