[tracker/functional-test-fixes-bug-696172: 5/8] functional-tests: 400-extractor.py expects different arguments
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/functional-test-fixes-bug-696172: 5/8] functional-tests: 400-extractor.py expects different arguments
- Date: Mon, 24 Feb 2014 16:24:59 +0000 (UTC)
commit 51508dcf43fb77a91021d1b430390539823f18af
Author: Martin Kampas <martin kampas+gnomebugs ubedi net>
Date: Mon Feb 24 16:13:13 2014 +0000
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.
tests/functional-tests/400-extractor.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/400-extractor.py b/tests/functional-tests/400-extractor.py
index 063d562..552d98c 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])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]