Fix smoke tests for hybrid packages 77/97577/4
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Mon, 17 Oct 2016 10:53:12 +0000 (12:53 +0200)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 24 Nov 2016 13:09:26 +0000 (05:09 -0800)
Change-Id: I0d475b40ad6251184fcbef992e1cf5008c7fe2b6

src/unit_tests/smoke_test.cc

index ec1ab9d3a7510a5247f36109fb1e3b26da2e1e49..4dab080b332a9a00cc455e1fe779e874196692eb 100644 (file)
@@ -750,7 +750,8 @@ TEST_F(SmokeTest, DeinstallationMode_Hybrid) {
   std::string appid2 = "smokehyb03.Native";
   ASSERT_EQ(Install(path, PackageType::HYBRID),
             ci::AppInstaller::Result::OK);
-  ASSERT_EQ(Uninstall(pkgid, PackageType::WGT), ci::AppInstaller::Result::OK);
+  ASSERT_EQ(Uninstall(pkgid, PackageType::HYBRID),
+            ci::AppInstaller::Result::OK);
   CheckPackageNonExistance(pkgid, {appid1, appid2});
 }
 
@@ -795,10 +796,10 @@ TEST_F(SmokeTest, MountUpdateMode_Hybrid) {
   std::string pkgid = "smokehyb06";
   std::string appid1 = "smokehyb06.web";
   std::string appid2 = "smokehyb06.service";
-  ASSERT_EQ(MountInstall(path_old, PackageType::WGT),
+  ASSERT_EQ(MountInstall(path_old, PackageType::HYBRID),
             ci::AppInstaller::Result::OK);
   AddDataFiles(pkgid);
-  ASSERT_EQ(MountInstall(path_new, PackageType::WGT),
+  ASSERT_EQ(MountInstall(path_new, PackageType::HYBRID),
             ci::AppInstaller::Result::OK);
   ScopedTzipInterface interface(pkgid);
   ValidatePackage(pkgid, {appid1, appid2});