From b38ce66ca31e9a89c7791c8b8b57697ffb1be678 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Thu, 4 Jul 2013 09:23:17 +0200 Subject: [PATCH] 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 --- tests/general/PluginsInstallation.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"); \ } \ } \ -- 2.7.4