From: Andrew Nicols Date: Wed, 10 Dec 2014 02:52:20 +0000 (+0800) Subject: Correct removal of faildump X-Git-Tag: v1.5.1~12^2^2 X-Git-Url: http://git.cameron1729.xyz/?p=mdk.git;a=commitdiff_plain;h=4eeb1ea6bebde55498a8d697833a5f5fdbea5cc1 Correct removal of faildump This was causing the faildump path to be set and unset on each run. --- diff --git a/mdk/moodle.py b/mdk/moodle.py index 86c8356..16fde31 100644 --- a/mdk/moodle.py +++ b/mdk/moodle.py @@ -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: