STEP_NAME marco 28/72828/4 accepted/tizen/common/20160610.175902 accepted/tizen/ivi/20160609.091413 accepted/tizen/mobile/20160609.091548 accepted/tizen/tv/20160609.091351 accepted/tizen/wearable/20160609.091329 submit/tizen/20160609.010102
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 2 Jun 2016 12:58:21 +0000 (14:58 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Fri, 3 Jun 2016 09:46:02 +0000 (02:46 -0700)
Adding marco to print name of step that failed
in AppInstaller class

Following must be submitted together:
 - https://review.tizen.org/gerrit/72827
 - https://review.tizen.org/gerrit/72828
 - https://review.tizen.org/gerrit/72829

Change-Id: I96af51d6c924669ace683338097c9b8c3d3b40eb

src/tpk/step/configuration/step_parse_preload.h
src/tpk/step/filesystem/step_check_pkg_directory_path.h
src/tpk/step/filesystem/step_create_symbolic_link.h
src/tpk/step/filesystem/step_grant_permission.h
src/tpk/step/filesystem/step_tpk_patch_icons.h
src/tpk/step/filesystem/step_tpk_prepare_package_directory.h
src/tpk/step/filesystem/step_tpk_update_package_directory.h
src/tpk/step/pkgmgr/step_convert_xml.h
src/tpk/step/pkgmgr/step_manifest_adjustment.h
src/tpk/step/rds/step_tpk_rds_modify.h
src/unit_tests/smoke_test_helper.cc

index d0e02b59a0c493771f6fa43e76ddde0c91991182..51fe4a31a9c72d9ec5dfe63c53f310a8a97f2c5a 100644 (file)
@@ -22,7 +22,7 @@ class StepParsePreload : public common_installer::Step {
   Status undo() override { return Status::OK; }
   Status precheck() override { return Status::OK; }
 
-  SCOPE_LOG_TAG(ParsePreload)
+  STEP_NAME(ParsePreload)
 };
 
 }  // namespace configuration
index 98453ef4f72ae1d8ad8350f599e9ec2b58c8c450..39b53e913c8e6d61ae87caf82c1162fb28a8be00 100644 (file)
@@ -22,7 +22,7 @@ class StepCheckPkgDirPath : public common_installer::Step {
   Status undo() override { return Status::OK; }
   Status precheck() override { return Status::OK; }
 
-  SCOPE_LOG_TAG(CheckPkgDirPath)
+  STEP_NAME(CheckPkgDirPath)
 };
 
 }  // namespace filesystem
index 8b9a6aca4a8c7c85a7d7847b799007c1e0a923f5..5a7f57cc6fc3d2c24d485e6eea142157c5320387 100644 (file)
@@ -18,7 +18,7 @@ class StepCreateSymbolicLink : public common_installer::Step {
   Status undo() override { return Status::OK; }
   Status precheck() override;
 
-  SCOPE_LOG_TAG(SymbolicLink)
+  STEP_NAME(SymbolicLink)
 };
 
 }  // namespace filesystem
index b6776cd3dc530d26ddf5af03b9b378141eb5a230..c387437e2b5ec0c82d20486a61a4f3ca456ecfb7 100644 (file)
@@ -27,7 +27,7 @@ class StepTpkGrantPermission : public common_installer::Step {
   Status clean() override { return Status::OK; }
   Status precheck() override;
 
-  SCOPE_LOG_TAG(GrantPermission)
+  STEP_NAME(GrantPermission)
 };
 
 }  // namespace filesystem
index a3806b1a3f3267c0948dbd32a98c377f2b06f591..1458cbfe6a6b7738f08447e18491af76421aaddd 100644 (file)
@@ -34,7 +34,7 @@ class StepTpkPatchIcons : public common_installer::Step {
       application_x* app, icon_x* icon);
   Status FixIconLocation(const boost::filesystem::path& icon_text);
 
-  SCOPE_LOG_TAG(TpkPatchIcons)
+  STEP_NAME(TpkPatchIcons)
 };
 
 }  // namespace filesystem
index 3437666e4a38e105da947fc4c535a7bf95d041fb..597982096c64f523aad37cde76195e680be2182d 100644 (file)
@@ -54,7 +54,7 @@ class StepTpkPreparePackageDirectory : public common_installer::Step {
   Status PrepareLink(const std::string& entry,
                      const boost::filesystem::path& mount_point);
 
-  SCOPE_LOG_TAG(TpkPreparePackageDirectory)
+  STEP_NAME(TpkPreparePackageDirectory)
 };
 
 }  // namespace filesystem
index a0fe215f64a9778703fc071a6a3ac08f0b479e01..0d48ce3d2ddb32739db5881c221f147407297b9a 100644 (file)
@@ -37,7 +37,7 @@ class StepTpkUpdatePackageDirectory : public StepTpkPreparePackageDirectory {
   Status RestoreDirectory(const std::string& entry,
                           const boost::filesystem::path& backup_path);
 
-  SCOPE_LOG_TAG(TpkUpdatePackageDirectory)
+  STEP_NAME(TpkUpdatePackageDirectory)
 };
 
 }  // namespace filesystem
index 12332f6dc96025cb174337e85b2e76531fa645df..f734c3ad6e1c3b4d46317fd366f47f0eb24760d3 100644 (file)
@@ -28,7 +28,7 @@ class StepConvertXml : public common_installer::Step {
   boost::filesystem::path xml_path_;
   bool ConvertXml(xmlDocPtr doc);
 
-  SCOPE_LOG_TAG(ConvertXml)
+  STEP_NAME(ConvertXml)
 };
 
 }  // namespace pkgmgr
index 9bac6ed95ac4d5fd6da85dec69a6bfa2cfa3e7c9..6d3986a27dc726fd9ffa37802437d0b22fc0e928 100644 (file)
@@ -26,7 +26,7 @@ class StepManifestAdjustment : public common_installer::Step {
  private:
   boost::filesystem::path xml_path_;
 
-  SCOPE_LOG_TAG(StepManifestAdjustment)
+  STEP_NAME(StepManifestAdjustment)
 };
 
 }  // namespace pkgmgr
index 9d8b5a2ba0f4ae92e36bb5af723938f9d16fc359..cc1b40430d1c0741527090d77b463a439d38f2dc 100644 (file)
@@ -26,6 +26,8 @@ class StepTpkRDSModify : public common_installer::rds::StepRDSModify {
 
  protected:
   std::string GetAppPath() override;
+
+  STEP_NAME(TpkRDSModify)
 };
 
 }  // namespace rds
index f803ddd5342aef81ad5b82a1467f7c333a3ba181..0edb55b503109c64eafe9991c0ecb1d83d578663 100644 (file)
@@ -26,6 +26,8 @@ class StepCrash : public ci::Step {
   ci::Step::Status clean() override { return ci::Step::Status::OK; }
   ci::Step::Status undo() override { return ci::Step::Status::OK; }
   ci::Step::Status precheck() override { return ci::Step::Status::OK; }
+
+  STEP_NAME(Crash)
 };
 
 }  // namespace