File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ const stream = require('stream');
9
9
const util = require ( 'util' ) ;
10
10
const Timer = process . binding ( 'timer_wrap' ) . Timer ;
11
11
12
- const testRoot = path . resolve ( process . env . NODE_TEST_DIR ||
13
- path . dirname ( __filename ) ) ;
12
+ const testRoot = process . env . NODE_TEST_DIR ?
13
+ path . resolve ( process . env . NODE_TEST_DIR ) : __dirname ;
14
14
15
- exports . testDir = path . dirname ( __filename ) ;
15
+ exports . testDir = __dirname ;
16
16
exports . fixturesDir = path . join ( exports . testDir , 'fixtures' ) ;
17
17
exports . libDir = path . join ( exports . testDir , '../lib' ) ;
18
18
exports . tmpDirName = 'tmp' ;
19
19
exports . PORT = + process . env . NODE_COMMON_PORT || 12346 ;
20
20
exports . isWindows = process . platform === 'win32' ;
21
21
exports . isWOW64 = exports . isWindows &&
22
- ( process . env [ ' PROCESSOR_ARCHITEW6432' ] !== undefined ) ;
22
+ ( process . env . PROCESSOR_ARCHITEW6432 !== undefined ) ;
23
23
exports . isAix = process . platform === 'aix' ;
24
24
exports . isLinuxPPCBE = ( process . platform === 'linux' ) &&
25
25
( process . arch === 'ppc64' ) &&
You can’t perform that action at this time.
0 commit comments