50 |
|
|
51 |
class Result_SaveImage(unittest._TextTestResult): |
class Result_SaveImage(unittest._TextTestResult): |
52 |
def startTest(self, test): |
def startTest(self, test): |
53 |
from test.tools import gfx |
import test.tools.gfx as gfx |
54 |
gfx.didRender = 0 |
gfx.didRender = 0 |
55 |
unittest._TextTestResult.startTest(self, test) |
unittest._TextTestResult.startTest(self, test) |
56 |
def addError(self, test, err): |
def addError(self, test, err): |
247 |
if __name__ == '__main__': |
if __name__ == '__main__': |
248 |
sys.path.insert(0, ".") |
sys.path.insert(0, ".") |
249 |
import getopt |
import getopt |
|
import gzz.util.dbg |
|
250 |
opts, args = getopt.getopt(sys.argv[1:], |
opts, args = getopt.getopt(sys.argv[1:], |
251 |
gzz.util.dbg.short + "f:", |
vob.util.dbg.short + "f:", |
252 |
gzz.util.dbg.long + ["--allowfail="]) |
vob.util.dbg.long + ["--allowfail="]) |
253 |
for o,a in opts: |
for o,a in opts: |
254 |
print "Opt: ",o,a |
print "Opt: ",o,a |
255 |
if o in gzz.util.dbg.all: |
if o in vob.util.dbg.all: |
256 |
gzz.util.dbg.option(o,a) |
vob.util.dbg.option(o,a) |
257 |
elif o in ("-f", "--allowfail"): |
elif o in ("-f", "--allowfail"): |
258 |
if a == "*": |
if a == "*": |
259 |
runfail = ["GL", "AWT", "*"] |
runfail = ["GL", "AWT", "*"] |
282 |
print "\n".join(l) |
print "\n".join(l) |
283 |
print "Calling system.exit" |
print "Calling system.exit" |
284 |
java.lang.System.exit(0) |
java.lang.System.exit(0) |
285 |
GraphicsAPI.getInstance().startUpdateManager(Starter()) |
vob.GraphicsAPI.getInstance().startUpdateManager(Starter()) |
286 |
|
|
287 |
|
|
288 |
|
|