From fc7a260f8f5a40db59674ed2688b7001d30cd80a Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Sat, 11 Oct 2014 15:54:14 +0000 Subject: yarn: Remove scenario DATADIR after running 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. --- yarn | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.1