from subprocess import Popen, PIPE
from difflib import Differ
-DEBUG = False
+DEBUG = 0
VERBOSE = False
for tclist in tests:
for tc in tclist:
args = [cmd]
+ if DEBUG > 1:
+ args.append('-d')
for pd in tc['pdlist']:
args.extend(['-P', pd['name']])
for label, probe in pd['probes']:
opts, args = getopt(sys.argv[1:], "dvarslRS:")
for opt, arg in opts:
if opt == '-d':
- DEBUG = True
+ DEBUG += 1
if opt == '-v':
VERBOSE = True
elif opt == '-a':