File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,20 @@ function writeLog(msg, link) {
14
14
log . push ( msg ) ;
15
15
}
16
16
17
+ function printSystemInfo ( ) {
18
+ var os = require ( 'os' ) ;
19
+ var cpus = os . cpus ( ) ;
20
+ var spawn = require ( 'child_process' ) . spawn ;
21
+ console . log ( 'System Information:' ) ;
22
+ console . log ( os . type ( ) , os . release ( ) , os . arch ( ) ) ;
23
+ console . log ( 'Node.js ' + process . versions . node ) ;
24
+ console . log ( 'V8 ' + process . versions . v8 ) ;
25
+ console . log ( cpus [ 0 ] . model + ' × ' + cpus . length ) ;
26
+ console . log ( ) ;
27
+ console . log ( 'Shell Information:' ) ;
28
+ spawn ( 'sh' , [ '-c' , '${SHELL} --version' ] , { stdio : 'inherit' } ) ;
29
+ }
30
+
17
31
cd ( __dirname + '/' + TEST_DIR ) ;
18
32
var prefix ;
19
33
var shellJSWins = [ ] ;
@@ -82,3 +96,4 @@ if (shouldLog) {
82
96
// Append new docs to README
83
97
sed ( '-i' , / # # R e s u l t s / , '## Results\n\n' + text , 'README.md' ) ;
84
98
}
99
+ printSystemInfo ( ) ;
You can’t perform that action at this time.
0 commit comments