File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ const { Job } = require('../job');
70
70
run : config . run_memory_limit ,
71
71
compile : config . compile_memory_limit ,
72
72
} ,
73
+ packages : test . packages || [ ] ,
73
74
} ) ;
74
75
75
76
await job . prime ( ) ;
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ class Job {
188
188
proc_info . gid = this . gid ;
189
189
}
190
190
if ( options . env ) {
191
- proc_info . env = options . env ;
191
+ proc_info . env = { ... process . env , ... options . env } ;
192
192
}
193
193
const proc = cp . spawn ( proc_call [ 0 ] , proc_call . splice ( 1 ) , {
194
194
stdio : 'pipe' ,
@@ -291,7 +291,9 @@ class Job {
291
291
const env = { } ;
292
292
if ( install && install . stdout !== '' && install . code === 0 ) {
293
293
const install_json = JSON . parse ( install . stdout ) ;
294
- env . PISTON_PACKAGES_PATH = install_json . map ( i => i . outputs . out ) . join ( ':' ) ;
294
+ env . PISTON_PACKAGES_PATH = install_json
295
+ . map ( i => i . outputs . out )
296
+ . join ( ':' ) ;
295
297
}
296
298
297
299
const code_files = this . files . filter ( file => file . encoding == 'utf8' ) ;
You can’t perform that action at this time.
0 commit comments