Skip to content

Commit

Permalink
Fix default glob to only match .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Apr 22, 2015
1 parent 85c6cc8 commit 665bdef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Run language tests in the default runner (Node):

Using -T, collateral paths are relative to the test262 root directory:

`> test262-harness -T ~/test262 language/**/*`
`> test262-harness -T ~/test262 language/**/*.js`

When a glob matches a directory, the default behavior will run all files under it recursively:
When a glob matches a directory, the default behavior will run all .js files under it recursively:

`> test262-harness -T ~/test262 language`

Expand Down
4 changes: 2 additions & 2 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function getFilesStream(config) {

// by default, run all files recursively when we pass test262Dir
if(config.test262Dir && files.length === 0) {
files = ['**/*']
files = ['**/*.js']
}

files = files.map(function(p) {
Expand All @@ -286,7 +286,7 @@ function getFilesStream(config) {
}

if(fs.existsSync(p) && fs.statSync(p).isDirectory()) {
p = path.join(p, '**/*');
p = path.join(p, '**/*.js');
}

return p;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "test262-harness",
"repository": "bterlson/test262-harness",
"version": "1.5.0",
"version": "1.5.1",
"description": "Node-based harness for test262",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 665bdef

Please sign in to comment.