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:13:13 +0000
commit51508dcf43fb77a91021d1b430390539823f18af (patch)
tree59adb19d654d1ae12e7ac4ca3be794208df7e36e
parent0f141b81c3554e00caccb43767e7ea8242255a74 (diff)
downloadtracker-51508dcf43fb77a91021d1b430390539823f18af.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])