Skip to content

Commit

Permalink
Do not spawn twice if test is executable
Browse files Browse the repository at this point in the history
Fix #547
  • Loading branch information
isaacs committed Apr 29, 2019
1 parent 38e4643 commit 7d17965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ const runAllFiles = (options, tap) => {
tap.spawn(node, args, opt, file)
} else if (file.match(/\.tap$/)) {
tap.spawn('cat', [file], opt, file)
} if (isexe.sync(options.files[i]))
} else if (isexe.sync(options.files[i]))
tap.spawn(options.files[i], options['test-arg'], opt, file)
}
}
Expand Down

0 comments on commit 7d17965

Please sign in to comment.