From 9bbaf82c590e28de95f6c7d89067cd0d687a4a07 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 23 Dec 2008 18:48:22 +0000 Subject: [PATCH] cleaned up runcmd function --- lib/as3/runtests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/as3/runtests.py b/lib/as3/runtests.py index 75975bb..6e8e33e 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 -- 1.7.10.4