Skip to content

Commit

Permalink
Fix bug when looking for report directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Jul 13, 2016
1 parent 1b8d2eb commit bae8ebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// This code is governed by the BSD License found in the LICENSE file.
const compile = require('test262-compiler');
const fs = require('fs');
const Path = require('path');
const globber = require('../lib/globber.js');
const argv = require('../lib/cli.js').argv;
const validator = require('../lib/validator.js');
Expand All @@ -15,7 +16,7 @@ const test262Finder = require('../lib/findTest262.js');
const scenariosForTest = require('../lib/scenarios.js');

let reporter;
if (fs.existsSync('lib/reporters/' + argv.reporter + '.js')) {
if (fs.existsSync(Path.join(__dirname, '../lib/reporters', argv.reporter + '.js'))) {
reporter = require('../lib/reporters/' + argv.reporter + '.js');
} else {
console.error(`Reporter ${argv.reporter} not found.`);
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": "2.0.0",
"version": "2.0.1",
"description": "Node-based harness for test262",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit bae8ebb

Please sign in to comment.