Correct removal of faildump
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 10 Dec 2014 02:52:20 +0000 (10:52 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 10 Dec 2014 02:52:22 +0000 (10:52 +0800)
This was causing the faildump path to be set and unset on each run.

mdk/moodle.py

index 86c8356..16fde31 100644 (file)
@@ -308,7 +308,7 @@ class Moodle(object):
         currentFailDumpPath = self.get('behat_faildump_path')
         if faildumppath and currentFailDumpPath != faildumppath:
             self.updateConfig('behat_faildump_path', faildumppath)
-        else:
+        elif (not faildumppath and currentFailDumpPath):
             self.removeConfig('behat_faildump_path')
 
         if not currentPrefix or force: