summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-10-11 15:54:14 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-11 15:54:14 +0000
commitfc7a260f8f5a40db59674ed2688b7001d30cd80a (patch)
treea91a6eb549b979ed3c3c4d1636e74ea9df1b3f2b
parent634a589643e2a8a56feb9c31fba789702387c1b3 (diff)
downloadcmdtest-baserock/richardmaw/space-efficient.tar.gz
yarn: Remove scenario DATADIR after runningbaserock/richardmaw/space-efficient
Now it will remove the DATADIR of the scenario after it has run, rather than after every scenario has been run, if --snapshot has not been specified. This reduces the amount of space needed to run yarn tests further.
-rwxr-xr-xyarn3
1 files changed, 3 insertions, 0 deletions
diff --git a/yarn b/yarn
index 15b171c..ffec41a 100755
--- a/yarn
+++ b/yarn
@@ -260,6 +260,9 @@ class YarnRunner(cliapp.Application):
ok = scenario_runner.run_scenario(scenario, datadir, homedir)
self.remember_scenario_timing(time.time() - started)
+
+ if not self.settings['snapshot']:
+ shutil.rmtree(datadir, ignore_errors=True)
return ok
def homedir(self, datadir):