diff bitten/slave.py @ 570:65dcf1d70c5b

0.6dev: Fixing keep_files (`-k`) option, closing #229. Thanks to cwiddofer for report + patch.
author osimons
date Sun, 05 Jul 2009 11:41:52 +0000
parents 74bc339ce7d5
children 4b75e3f6f27c
line wrap: on
line diff
--- a/bitten/slave.py
+++ b/bitten/slave.py
@@ -430,7 +430,7 @@
     except ExitSlave, e:
         exit_code = e.exit_code
 
-    if not options.work_dir:
+    if not options.keep_files:
         log.debug('Removing temporary directory %s' % slave.work_dir)
         _rmtree(slave.work_dir)
     return exit_code
Copyright (C) 2012-2017 Edgewall Software