diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-10-11 15:54:14 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-10-11 15:54:14 +0000 |
commit | fc7a260f8f5a40db59674ed2688b7001d30cd80a (patch) | |
tree | a91a6eb549b979ed3c3c4d1636e74ea9df1b3f2b | |
parent | 634a589643e2a8a56feb9c31fba789702387c1b3 (diff) | |
download | cmdtest-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-x | yarn | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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): |