X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fruntests.py;h=ba3b033afafec2120a6f0de85b7990774c0c14c7;hb=f33a11aae4012d3843767d0df1fef2547c71704f;hp=75975bbf430b30d1c0772080b26e5e3651ad032e;hpb=62204b16ee0d3d7f0876471668a68b9382d332bb;p=swftools.git diff --git a/lib/as3/runtests.py b/lib/as3/runtests.py index 75975bb..ba3b033 100644 --- a/lib/as3/runtests.py +++ b/lib/as3/runtests.py @@ -55,7 +55,7 @@ def check(s): return 0 not in row return 0 -def runcmd(cmd,args,output,wait): +def runcmd(cmd,args,wait): #fo = open(tempfile, "wb") fo= os.tmpfile() p = subprocess.Popen([cmd] + args, executable=cmd, stdout=fo, stderr=fo) @@ -89,7 +89,7 @@ class Test: def compile(self): try: os.unlink("abc.swf"); except: pass - ret,output = runcmd("./parser",[self.file],"/tmp/abctest.txt",wait=60) + ret,output = runcmd("./parser",[self.file],wait=60) self.compile_error = 0 self.compile_output = output if ret: @@ -98,7 +98,7 @@ class Test: self.compile_error = 1 def run(self): - ret,output = runcmd("flashplayer",["abc.swf"],"/tmp/abctest.txt",wait=1) + ret,output = runcmd("flashplayer",["abc.swf"],wait=1) os.system("killall flashplayer") self.flash_output = output @@ -130,8 +130,10 @@ class Test: def doprintlong(self): print self.nr, self.file print "================================" + print "compile:", (test.compile_error and "error" or "ok") print test.compile_output print "================================" + print "run:", (test.flash_error and "error" or "ok") print test.flash_output print "================================"