diff --git a/test-tc.py b/test-tc.py index 595363e..d0c7597 100755 --- a/test-tc.py +++ b/test-tc.py @@ -3,7 +3,7 @@ # Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved. PROGNAME = "tconfpy Test Driver" -RCSID = "$Id: test-tc.py,v 1.127 2004/04/07 00:09:48 tundra Exp $" +RCSID = "$Id: test-tc.py,v 1.128 2004/04/07 08:12:37 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -188,13 +188,14 @@ if len(sys.argv) < 2: print BANNER - print "Usage: test-tc.py [symtbl] [nonew] [debug] [litvars] file file ..." + print "Usage: test-tc.py [symtbl] [nonewvar] [nonewns] [debug] [litvars] file file ..." sys.exit(1) # Process all the requested configuration files, # dumping the what tconfpy returns for each one. -ALLOW = True +ALLOWVAR = True +ALLOWNS = True DEBUG = False LITVARS = False @@ -215,13 +216,16 @@ elif fn == "symtbl": st = symtbl - elif fn == "nonew": - ALLOW = False + elif fn == "nonewvar": + ALLOWVAR = False + + elif fn == "nonewns": + ALLOWNS = False # Everything else presumed to be a configuration file else: - retval = ParseConfig(fn, st, AllowNewVars=ALLOW, Debug=DEBUG, LiteralVars=LITVARS) + retval = ParseConfig(fn, st, AllowNewVars=ALLOWVAR, AllowNewNamespaces=ALLOWNS, Debug=DEBUG, LiteralVars=LITVARS) if retval.Errors: print "Errors Were Found In '%s'!" % fn