fix test tmp dir cleanup

This commit is contained in:
George Stagas
2015-04-23 21:27:14 +03:00
parent 74f04ed6a1
commit b760daca21

View File

@@ -111,6 +111,7 @@ var buildTest = function (binName, testName, opts) {
};
var clear = function () {
process.chdir(__dirname);
if (fs.existsSync(tmpLoc)) rimraf.sync(tmpLoc);
fs.mkdirSync(tmpLoc);
process.chdir(tmpLoc);