diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-04-13 19:37:12 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-04-13 19:42:24 +0300 |
commit | 29aed111bc9833010993ddc36393a69366936635 (patch) | |
tree | a9214472588bcfd48d76695e6fda61c62722c517 | |
parent | cfe017e99e7408367df6ef67514d8f4825ab8554 (diff) |
Add interrupt build result status
-rw-r--r-- | libbbot/manifest.cxx | 26 | ||||
-rw-r--r-- | libbbot/manifest.hxx | 3 |
2 files changed, 16 insertions, 13 deletions
diff --git a/libbbot/manifest.cxx b/libbbot/manifest.cxx index e2534c2..7412e74 100644 --- a/libbbot/manifest.cxx +++ b/libbbot/manifest.cxx @@ -43,12 +43,13 @@ namespace bbot { switch (s) { - case result_status::skip: return "skip"; - case result_status::success: return "success"; - case result_status::warning: return "warning"; - case result_status::error: return "error"; - case result_status::abort: return "abort"; - case result_status::abnormal: return "abnormal"; + case result_status::skip: return "skip"; + case result_status::success: return "success"; + case result_status::warning: return "warning"; + case result_status::error: return "error"; + case result_status::abort: return "abort"; + case result_status::abnormal: return "abnormal"; + case result_status::interrupt: return "interrupt"; } assert (false); @@ -58,12 +59,13 @@ namespace bbot result_status to_result_status (const string& s) { - if (s == "skip") return result_status::skip; - else if (s == "success") return result_status::success; - else if (s == "warning") return result_status::warning; - else if (s == "error") return result_status::error; - else if (s == "abort") return result_status::abort; - else if (s == "abnormal") return result_status::abnormal; + if (s == "skip") return result_status::skip; + else if (s == "success") return result_status::success; + else if (s == "warning") return result_status::warning; + else if (s == "error") return result_status::error; + else if (s == "abort") return result_status::abort; + else if (s == "abnormal") return result_status::abnormal; + else if (s == "interrupt") return result_status::interrupt; else throw invalid_argument ("invalid result status '" + s + '\''); } diff --git a/libbbot/manifest.hxx b/libbbot/manifest.hxx index 13b1138..d51d95b 100644 --- a/libbbot/manifest.hxx +++ b/libbbot/manifest.hxx @@ -309,7 +309,8 @@ namespace bbot warning, error, abort, - abnormal + abnormal, + interrupt }; LIBBBOT_EXPORT std::string |