[Pysys-commits] SF.net SVN: pysys:[1045] branches/post-1.3.0/pysys
Brought to you by:
ben-spiller,
moraygrieve
From: <ben...@us...> - 2018-10-18 13:54:33
|
Revision: 1045 http://sourceforge.net/p/pysys/code/1045 Author: ben-spiller Date: 2018-10-18 13:54:28 +0000 (Thu, 18 Oct 2018) Log Message: ----------- add fileutils.deletedir and deprecate baserunner/writer.purgeDirectory since it's not great to have code copied+pasted in several places, better/more efficient to use standard shutil.rmtree than to roll our own custom implementation, and it should be up to the caller whether they want to ignore errors or not; change baserunner to use deleteDir and deliberately _not_ suppress exceptions if output dir cannot be cleaned before test starts, since the entire test is completely invalid if some files are left from a previous run and it's improtant for the user to know this has happened (otherwise either they'll get a really confusing error but not know the real root cause - since the deletion warnings happen before run.log is set up - or the test will pass when it ought to have failed, potentialyl masking bugs) Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys/utils/fileutils.py branches/post-1.3.0/pysys/writer/__init__.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |