/[escript]/branches/ROBW_XPLATFORM/scons/scons_extensions.py
ViewVC logotype

Diff of /branches/ROBW_XPLATFORM/scons/scons_extensions.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 675 by robwdcock, Fri Mar 24 13:25:00 2006 UTC revision 676 by robwdcock, Sun Mar 26 10:13:34 2006 UTC
# Line 12  def build_py(target, source, env): Line 12  def build_py(target, source, env):
12  # Code to run unit_test executables  # Code to run unit_test executables
13  def runUnitTest(target, source, env):  def runUnitTest(target, source, env):
14    app = str(source[0].abspath)    app = str(source[0].abspath)
15    if not os.system(app):    if not env.Execute(app):
16      open(str(target[0]),'w').write("PASSED\n")      open(str(target[0]),'w').write("PASSED\n")
17    else:    else:
18      return 1      return 1
# Line 20  def runUnitTest(target, source, env): Line 20  def runUnitTest(target, source, env):
20    
21  def runPyUnitTest(target, source, env):  def runPyUnitTest(target, source, env):
22     app = 'python '+str(source[0].abspath)     app = 'python '+str(source[0].abspath)
23     if not os.system(app):     if not env.Execute(app):
24        open(str(target[0]),'w').write("PASSED\n")        open(str(target[0]),'w').write("PASSED\n")
25     else:     else:
26       return 1       return 1

Legend:
Removed from v.675  
changed lines
  Added in v.676

  ViewVC Help
Powered by ViewVC 1.1.26