summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas+gnomebugs@ubedi.net>2014-02-24 16:13:13 +0000
committerMartyn Russell <martyn@lanedo.com>2014-02-24 16:31:32 +0000
commit73e9adc0f9ca9a346a065df70543379219361790 (patch)
tree7d6e5891617e77354846185ed1b4f9c8161279a8
parenta29bff17bbea0003529eeb80fd51b7f339075f0c (diff)
downloadtracker-73e9adc0f9ca9a346a065df70543379219361790.tar.gz
functional-tests: 400-extractor.py expects different arguments
The tests.xml is autogenerated by create-tests-xml.py. It scans all *.py scripts for test class definitions and generate one test case for each class found. In that test case it invokes the script with the class name passed as an argument. 400-extractor.py expect different kind of argument.
-rwxr-xr-xtests/functional-tests/400-extractor.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional-tests/400-extractor.py b/tests/functional-tests/400-extractor.py
index 063d56276..552d98c5a 100755
--- a/tests/functional-tests/400-extractor.py
+++ b/tests/functional-tests/400-extractor.py
@@ -268,6 +268,9 @@ if __name__ == "__main__":
else:
if os.path.exists (sys.argv[1]) and sys.argv[1].endswith (".expected"):
run_one (sys.argv[1])
+ # FIXME: for the case when invoked by testrunner (see create-tests-xml.py)
+ elif sys.argv[1] == "ExtractionTestCase":
+ run_all ()
else:
print "Usage: %s [FILE.expected]" % (sys.argv[0])