Fix pkg regex for uninstalling apps 39/140039/3
authorDamian Pietruchowski <d.pietruchow@samsung.com>
Fri, 21 Jul 2017 11:35:34 +0000 (13:35 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Tue, 8 Aug 2017 10:14:15 +0000 (10:14 +0000)
Change-Id: I404ca74041e962127d0330837c5771c6a6462379
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
src/unit_tests/smoke_utils.cc

index 08d617f..34d6d12 100644 (file)
@@ -835,7 +835,7 @@ void UninstallAllAppsInDirectory(bf::path dir, bool is_preload) {
       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-Z0-9]{5,}");
         if (std::regex_match(package, pkg_regex)) {
           if (Uninstall(dir_entry.path().filename().string(), PackageType::WGT,
               is_preload, RequestResult::NORMAL) !=