Cache-control should be set only on api/runs
[WebKit-https.git] / Websites / perf.webkit.org / run-tests.js
index 7b3c3930fa8a65cfde9d937ff2f5205dd4fdecfa..f71c4199e8c59c030942ba2b04bd8dc9378ee026 100644 (file)
@@ -30,7 +30,7 @@ function pathToDatabseSQL(relativePath) {
 }
 
 function pathToTests(testName) {
-    return path.resolve(__dirname, 'tests', testName);
+    return testName ? path.resolve(__dirname, 'tests', testName) : path.resolve(__dirname, 'tests');
 }
 
 var configurationJSON = require('./config.json');