summaryrefslogtreecommitdiff
path: root/programs/run.py
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-11-25 12:41:35 -0800
committerKenneth Graunke <kenneth@whitecape.org>2012-11-25 12:41:51 -0800
commit147b7f7a2672c6ccee97f662f089e48682653952 (patch)
tree49a405761726c225f3b3311f247fc68af4d2ccc8 /programs/run.py
parentc143236645b39c3d5589ce949645333079d5454c (diff)
hook up the --results option and "database" rcfile hook
rather than hardcoding the xdg path
Diffstat (limited to 'programs/run.py')
-rwxr-xr-xprograms/run.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/programs/run.py b/programs/run.py
index 59d6aef..4d542f7 100755
--- a/programs/run.py
+++ b/programs/run.py
@@ -54,7 +54,7 @@ def parseArguments(argv, config):
p.add_argument('--valgrind', action='store_true',
help="Run tests in Valgrind's memcheck tool.",
default=False)
- p.add_argument('-r', '--results', action='store',
+ p.add_argument('-r', '--results', action='store', dest='database',
metavar='<results database>',
help='Specify an alternate result database (defaults to ~/.local/share/robyn/results.db))')
p.add_argument('suites', nargs='+')
@@ -62,18 +62,22 @@ def parseArguments(argv, config):
options = p.parse_args(argv)
# Override config file settings with the command line options.
- rc_options = ['threads', 'results']
+ rc_options = ['threads', 'database']
config.read_dict({'options': dict((k, v) for k, v in vars(options).items() if k in rc_options and v is not None)})
return options
def main(argv, config):
options = parseArguments(argv, config)
- framework.database.load()
+ framework.database.load(config)
tests = suites.loadTestLists(config, options.suites)
for test in sorted(tests['oglconform'].keys()):
print(test)
+ # Create test run in database
+ # Populate results with "not run yet"
+ # Resume
+
if __name__ == '__main__':
main(sys.argv[1:])