From b68924a9798a88668c1a64358ef88aa1d22e00b4 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Tue, 24 Feb 2015 11:49:23 +0100 Subject: [PATCH] Use central facility to remove temporary file. --- js/server/modules/org/arangodb/testing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index 5f733767ff..526fcae67f 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -1395,11 +1395,12 @@ testFuncs.upgrade = function (options) { result.first = executeAndWait(fs.join("bin","arangod"), args); if (result.first !== 0 && !options.force) { + print("not removing " + tmpDataDir); return result; } result.second = executeAndWait(fs.join("bin","arangod"), args); - fs.removeDirectoryRecursive(tmpDataDir); + cleanupDirectories.push(tmpDataDir); return result; };