summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-02-07 14:53:42 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-02-07 14:53:42 +0000
commit7ed8588e652a105ea7d3f327c53825035d0e63ec (patch)
treebca20b2059be2042b8262b71655a9096db3dada9
parent8675791c5977381d50a9c4e6d1dcfe6fd66e6f27 (diff)
downloadcmdtest-baserock/richardmaw/S10275/factor-out-modules-v2.tar.gz
Fix allowing multiple scenarios to be run at oncebaserock/richardmaw/S10275/factor-out-modules-v2
-rwxr-xr-xyarn6
1 files changed, 3 insertions, 3 deletions
diff --git a/yarn b/yarn
index db18cd7..4d3380b 100755
--- a/yarn
+++ b/yarn
@@ -155,6 +155,9 @@ class YarnRunner(cliapp.Application):
failed_scenarios.append(scenario)
duration = time.time() - start_time
+ if not self.settings['snapshot']:
+ shutil.rmtree(self.tempdir)
+
if not self.settings['quiet']:
self.ts.clear()
self.ts.finish()
@@ -256,9 +259,6 @@ class YarnRunner(cliapp.Application):
ok = scenario_runner.run_scenario(scenario, datadir, homedir)
- if not self.settings['snapshot']:
- shutil.rmtree(self.tempdir)
-
self.remember_scenario_timing(time.time() - started)
return ok