[tracker] functional-tests: Ignore Common* and *Template test classes in tests.xml
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] functional-tests: Ignore Common* and *Template test classes in tests.xml
- Date: Thu, 14 Oct 2010 08:59:51 +0000 (UTC)
commit f0479fe42d5c5be7b1f7020ef42a9aa2e03660fd
Author: Ivan Frade <ivan frade nokia com>
Date: Wed Oct 13 20:26:23 2010 +0300
functional-tests: Ignore Common* and *Template test classes in tests.xml
Those classes shouldn't be run in the tests. Are there to organize the code
but don't contain useful tests by themselves.
tests/functional-tests/create-tests-xml.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/create-tests-xml.py b/tests/functional-tests/create-tests-xml.py
index 81088dd..f48ac2b 100755
--- a/tests/functional-tests/create-tests-xml.py
+++ b/tests/functional-tests/create-tests-xml.py
@@ -67,6 +67,9 @@ def print_as_xml (filename):
print " <description>%s</description>" % (__get_doc (module))
print PRE_STEPS
for name, obj in inspect.getmembers (module):
+ if name.startswith ("Common") or name.endswith ("Template"):
+ continue
+
if (inspect.isclass (obj)
and obj.__module__ == filename[:-3]):
script = os.path.join (cfg.DATADIR, "tracker-tests", filename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]