/[escript]/trunk/site_scons/site_init.py
ViewVC logotype

Diff of /trunk/site_scons/site_init.py

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

revision 5448 by jfenwick, Fri Feb 6 05:31:37 2015 UTC revision 5521 by sshaw, Tue Mar 10 06:27:59 2015 UTC
# Line 190  def runPyUnitTest(target, source, env): Line 190  def runPyUnitTest(target, source, env):
190             app = "cd "+ pn +" & "+sys.executable + " " + sn             app = "cd "+ pn +" & "+sys.executable + " " + sn
191     else:     else:
192       skipfile = os.path.join(env['BUILD_DIR'], sn[:-3]) + ".skipped"       skipfile = os.path.join(env['BUILD_DIR'], sn[:-3]) + ".skipped"
193         failfile = os.path.join(env['BUILD_DIR'], sn[:-3]) + ".failed"
194       try:       try:
195           os.unlink(skipfile)           os.unlink(skipfile)
196       except Exception as e:       except Exception as e:
197          pass          pass
198       app = "cd "+pn+"; "+binpath(env, "run-escript")+" -ov "+binpath(env,       app = "cd "+pn+"; "+binpath(env, "run-escript")+" -ov "+binpath(env,
199              "../tools/testrunner.py")+" -outputfile="+skipfile+" "+sn              "../tools/testrunner.py")+" -skipfile="+skipfile+" "+"-failfile="+failfile+" "+"-exit "+sn
200     print "Executing test: ",app     print "Executing test: ",app
201     if env.Execute(app) == 0:     if env.Execute(app) == 0:
202        open(str(target[0]),'w').write("PASSED\n")        open(str(target[0]),'w').write("PASSED\n")

Legend:
Removed from v.5448  
changed lines
  Added in v.5521

  ViewVC Help
Powered by ViewVC 1.1.26