Reset optind after parsing arguments 42/312642/1
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 12 Jun 2024 11:19:24 +0000 (20:19 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 12 Jun 2024 11:19:24 +0000 (20:19 +0900)
Change-Id: Ifb6f69d0580d4ea2947d55f63e628eee21d7f5fd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
test/smoke_tests/common/smoke_utils.cc

index 027098c..b46ecf2 100644 (file)
@@ -119,7 +119,7 @@ ci::RequestMode ParseRequestMode(int argc,  char** argv) {
         break;
     }
   }
-
+  optind = 1;
   if (is_global_request) {
     std::cout << "Request mode was set to global." << std::endl;
     return ci::RequestMode::GLOBAL;