From: Tomasz Iwanek Date: Thu, 4 Jul 2013 07:23:17 +0000 (+0200) Subject: Run wrt-installer -p for plugins tests X-Git-Tag: submit/tizen_2.2/20130716.180435~1^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b38ce66ca31e9a89c7791c8b8b57697ffb1be678;p=framework%2Fweb%2Fwrt-installer.git Run wrt-installer -p for plugins tests [Issue#] N/A [Bug] Tests may not run properly [Cause] N/A [Solution] Run plugin installation. Make sure it was run. [Verification] run: wrt-installer-tests-general --output=text --regexp='PluginsInstallation_' Change-Id: Idfcb05a3cbb294633a0d2d4fbdff5d192dce17d1 --- diff --git a/tests/general/PluginsInstallation.cpp b/tests/general/PluginsInstallation.cpp index a1133f6..3a03ad8 100644 --- a/tests/general/PluginsInstallation.cpp +++ b/tests/general/PluginsInstallation.cpp @@ -24,11 +24,18 @@ #include #include #include +#include //////////////////////////////////////////////////////////////////////////////// RUNNER_TEST_GROUP_INIT(PluginsInstallation) +STATIC_BLOCK +{ + (void)system("wrt_reset_all.sh"); + (void)system("wrt-installer -p"); +} + #define MAKE_PLUGIN_CHECK_TESTCASE(TESTCASE, LIBNAME) \ RUNNER_TEST(PluginsInstallation_##TESTCASE) \ { \ @@ -36,7 +43,7 @@ RUNNER_TEST_GROUP_INIT(PluginsInstallation) WrtDB::PluginDAOReadOnly pdao(#LIBNAME); \ RUNNER_ASSERT_MSG(pdao.getInstallationStatus() == WrtDB::PluginDAOReadOnly::INSTALLATION_COMPLETED, "Plugin is not installed correctly"); \ } Catch(DPL::Exception) { \ - LogError(_rethrown_exception.DumpToString()); \ + LogError(_rethrown_exception.DumpToString()); \ RUNNER_ASSERT_MSG(false, "DPL::Exception"); \ } \ } \