Cleanup using os temp path

This commit is contained in:
Paul Hatcherian 2020-10-07 07:52:11 -04:00
parent ae095094f7
commit 8ce630d670

View file

@ -34,7 +34,7 @@ const createTestRepo = (inputs) => {
let i = 1;
return {
clean: () => execute('/tmp', `rm -rf ${repoDirectory}`),
clean: () => execute(os.tmpdir(), `rm -rf ${repoDirectory}`),
makeCommit: (msg, path) => {
run(`touch ${path !== undefined ? path.trim('/') + '/' : ''}test${i++}`);
run(`git add --all`);