[GRASS-SVN] r61131 - sandbox/wenzeslaus/gunittest

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 2 14:35:47 PDT 2014


Author: wenzeslaus
Date: 2014-07-02 14:35:47 -0700 (Wed, 02 Jul 2014)
New Revision: 61131

Modified:
   sandbox/wenzeslaus/gunittest/main.py
Log:
gunittest: do not fail if directory to remove exists

Modified: sandbox/wenzeslaus/gunittest/main.py
===================================================================
--- sandbox/wenzeslaus/gunittest/main.py	2014-07-02 21:21:32 UTC (rev 61130)
+++ sandbox/wenzeslaus/gunittest/main.py	2014-07-02 21:35:47 UTC (rev 61131)
@@ -253,7 +253,7 @@
         sys.stderr.write("GISDBASE <%s> does not exist\n" % gisdbase)
         sys.exit(1)
     results_dir = 'testresults'
-    shutil.rmtree(results_dir)  # TODO: too brute force?
+    silent_rmtree(results_dir)  # TODO: too brute force?
 
     invoker = GrassTestFilesInvoker(start_dir='.')
     invoker.run_in_location(gisdbase=gisdbase,



More information about the grass-commit mailing list