summaryrefslogtreecommitdiff
path: root/programs/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'programs/run.py')
-rwxr-xr-xprograms/run.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/programs/run.py b/programs/run.py
index 4d542f7..b92b91d 100755
--- a/programs/run.py
+++ b/programs/run.py
@@ -31,7 +31,7 @@ import os
import os.path as path
import sys
-import framework.database
+from framework.database import ResultDatabase
import suites
def parseArguments(argv, config):
@@ -57,6 +57,7 @@ def parseArguments(argv, config):
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('name', metavar='<name of test run>')
p.add_argument('suites', nargs='+')
options = p.parse_args(argv)
@@ -68,14 +69,18 @@ def parseArguments(argv, config):
return options
def main(argv, config):
- options = parseArguments(argv, config)
- framework.database.load(config)
- tests = suites.loadTestLists(config, options.suites)
+ args = parseArguments(argv, config)
- for test in sorted(tests['oglconform'].keys()):
- print(test)
+ tests = suites.loadTestLists(config, args.suites)
+
+ #for test in sorted(tests['oglconform'].keys()):
+ #print(test)
+
+ db = ResultDatabase(config)
# Create test run in database
+ db.createRun(args.name, 'driver', 'system')
+
# Populate results with "not run yet"
# Resume