changeset 151:6261eea8a975

Positional cmdline arguments now override testconf.tests and disable groups
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 03 Jun 2011 10:54:11 +0100
parents 006dce02752c
children 7951219d9866
files upreckon/config.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/upreckon/config.py	Fri Jun 03 02:39:02 2011 +0100
+++ b/upreckon/config.py	Fri Jun 03 10:54:11 2011 +0100
@@ -4,7 +4,7 @@
 
 from .compat import *
 from . import files
-from __main__ import options
+from __main__ import options, args
 
 if files.ZipArchive:
 	try:
@@ -179,6 +179,9 @@
 			setattr(module, name, newmap)
 	if options.no_maxtime:
 		module.maxcputime = module.maxwalltime = 0
+	if args:
+		module.usegroups = False
+		module.tests = args
 	try:
 		sys.dont_write_bytecode = dwb
 	except NameError: