Fix pkg regex for uninstalling apps 40/140040/3
authorDamian Pietruchowski <d.pietruchow@samsung.com>
Fri, 21 Jul 2017 11:38:55 +0000 (13:38 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Tue, 8 Aug 2017 10:13:52 +0000 (10:13 +0000)
Change-Id: Ia9a14aa1413d2bd7dafaef20bb69cbe726d8b971
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
src/unit_tests/smoke_utils.cc

index 02eb43c..c3f48ce 100644 (file)
@@ -776,7 +776,7 @@ void UninstallAllAppsInDirectory(bf::path dir, bool is_readonly) {
       if (dir_entry.path().string().find("smoke") != std::string::npos &&
           bf::is_directory(dir_entry)) {
         std::string package = dir_entry.path().filename().string();
-        std::regex pkg_regex("smoke[a-zA-Z]{3,}[1-9]{2,}");
+        std::regex pkg_regex("smoke[a-zA-Z]{3,}[0-9]{2,}");
         if (std::regex_match(package, pkg_regex)) {
           if (Uninstall(package, is_readonly, RequestResult::NORMAL) !=
               ci::AppInstaller::Result::OK) {