Skip to content

Commit

Permalink
fixing some problems with saving the report file on windows - ##55
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed Feb 25, 2014
1 parent eb4ffdd commit ec2a336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runner/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module.exports = new (function() {
list.sort();

var modules = list.filter(function (filePath) {
var filename = filePath.split('/').slice(-1)[0];
var filename = filePath.split(path.sep).slice(-1)[0];
return opts.filter ?
minimatch(filename, opts.filter) :
extensionPattern.exec(filePath);
Expand Down Expand Up @@ -196,11 +196,11 @@ module.exports = new (function() {
}

list.forEach(function(file) {
file = [dir, file].join('/');
file = [dir, file].join(path.sep);

fs.stat(file, function(err, stat) {
if (stat && stat.isDirectory()) {
var dirName = file.split('/').slice(-1)[0];
var dirName = file.split(path.sep).slice(-1)[0];
if (opts.skipgroup && opts.skipgroup.indexOf(dirName) > -1) {
pending = pending-1;
} else {
Expand Down

0 comments on commit ec2a336

Please sign in to comment.