From 8db258b42fdb99f1adf7a4d4ede62fc062ab1b6a Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 27 Dec 2017 18:08:21 +0400 Subject: [PATCH] fix test listing when server is launched from different directory --- plugins/c9.vfs.standalone/standalone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.vfs.standalone/standalone.js b/plugins/c9.vfs.standalone/standalone.js index a1b64eca..5f68fa57 100644 --- a/plugins/c9.vfs.standalone/standalone.js +++ b/plugins/c9.vfs.standalone/standalone.js @@ -218,7 +218,7 @@ function plugin(options, imports, register) { filefinder.find(base, "plugins", ".*_test.js", blacklistfile, function(err, result) { result.all = result.list.concat(result.blacklist); async.filterSeries(result.list, function(file, next) { - fs.readFile(file, "utf8", function(err, file) { + fs.readFile(base + file, "utf8", function(err, file) { if (err) return next(false); if (file.match(/^"use server"/m) && !file.match(/^"use client"/m)) return next(false);