const int kBufSize = 1024;
int main(int argc, char** argv) {
- bool no_backup = false;
- int repeat_count = 10;
- ReqType req_type = ReqType::UNKNOWN_REQ;
- bool repeat = false;
- BackupType backup_type = BackupType::MOVE;
- ci::RequestMode request_mode = smoke_test::ParseRequestMode(argc, argv);
- if (getuid() != 0 || request_mode != ci::RequestMode::GLOBAL)
- std::cout << "Run recovery test with user request mode" << std::endl;
-
- bpo::options_description options("Allowed options");
- bpo::variables_map opt_map;
try {
+ bool no_backup = false;
+ int repeat_count = 10;
+ ReqType req_type = ReqType::UNKNOWN_REQ;
+ bool repeat = false;
+ BackupType backup_type = BackupType::MOVE;
+ ci::RequestMode request_mode = smoke_test::ParseRequestMode(argc, argv);
+ if (getuid() != 0 || request_mode != ci::RequestMode::GLOBAL)
+ std::cout << "Run recovery test with user request mode" << std::endl;
+
+ bpo::options_description options("Allowed options");
+ bpo::variables_map opt_map;
options.add_options()
("help", "display this help message")
("install",
}
}
bpo::notify(opt_map);
- } catch (...) {
- std::cerr << "Exception occurred: "
- << boost::current_exception_diagnostic_information()
- << std::endl;
- return -1;
- }
- if (req_type == ReqType::UNKNOWN_REQ) {
- std::cerr << options << std::endl;
- return 0;
- }
+ if (req_type == ReqType::UNKNOWN_REQ) {
+ std::cerr << options << std::endl;
+ return 0;
+ }
- try {
testing::GTEST_FLAG(filter) = install_req_filter[req_type];
if (repeat) {
testing::GTEST_FLAG(repeat) = repeat_count;