diff options
Diffstat (limited to 'test/run-tests.js')
-rwxr-xr-x | test/run-tests.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/run-tests.js b/test/run-tests.js index abace39c..87301412 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -37,6 +37,12 @@ function find_test_files(dir) { var files = fs.readdirSync(dir).filter(function(name){ return /\.js$/i.test(name); }); + if (process.argv.length > 2) { + var x = process.argv.slice(2); + files = files.filter(function(f){ + return x.indexOf(f) >= 0; + }); + } return files; } |