diff -r 87cfa131b535 -r e7e0ae78773e configurationengine/source/plugins/example/integration-test/__init__.py --- a/configurationengine/source/plugins/example/integration-test/__init__.py Fri Mar 12 08:30:17 2010 +0200 +++ b/configurationengine/source/plugins/example/integration-test/__init__.py Tue Aug 10 14:29:28 2010 +0300 @@ -16,24 +16,4 @@ ## # @author Teemu Rytkonen -import unittest, os, sys -ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) -PLUGIN_SOURCE_ROOT = os.path.normpath(os.path.join(ROOT_PATH, '../..')) -assert os.path.split(PLUGIN_SOURCE_ROOT)[1] == 'plugins' - -# Import plugin_utils from the plug-in sources root -if PLUGIN_SOURCE_ROOT not in sys.path: sys.path.append(PLUGIN_SOURCE_ROOT) -import plugin_utils - -# Run integration test initialization -plugin_utils.integration_test_init(ROOT_PATH) - -def collect_suite(): - return plugin_utils.collect_test_suite_from_dir(ROOT_PATH) - -def runtests(): - unittest.TextTestRunner(verbosity=2).run(collect_suite()) - -if __name__ == '__main__': - runtests()