예제 #1
0
 def test(path, workdir=None, logfile=logf, extraopts=[]):
     dir, file = os.path.split(path)
     if not workdir: workdir = dir
     _, outfile = tempfile.mkstemp('', file)
     tmpfiles.append(outfile)
     cmdline = cmd + extraopts + ['--output', outfile]
     return sketch.Test(path, workdir, logfile, cmdline)
예제 #2
0
 def test(t):
     _, outfile = tempfile.mkstemp('', t)
     tmpfiles.append(outfile)
     cmdline = cmd + ['--output', outfile]
     path = 'regtest/' + t
     return sketch.Test(path, cwd, logf, cmdline)