Fix perf dashboard tests for node v8
[WebKit.git] / Websites / perf.webkit.org / server-tests / resources / test-server.js
index 87bee454e8913c8739b07b7cf1735dd459bb9ddf..a76d194b549059daad3eff086b8025a8ebb43aa4 100644 (file)
@@ -107,7 +107,7 @@ class TestServer {
     {
         childProcess.execFileSync('rm', ['-rf', this._dataDirectory]);
         if (this._backupDataPath)
     {
         childProcess.execFileSync('rm', ['-rf', this._dataDirectory]);
         if (this._backupDataPath)
-            fs.rename(this._backupDataPath, this._dataDirectory);
+            fs.renameSync(this._backupDataPath, this._dataDirectory);
     }
 
     cleanDataDirectory()
     }
 
     cleanDataDirectory()