File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ const { Job } = require('../job');
7070 run : config . run_memory_limit ,
7171 compile : config . compile_memory_limit ,
7272 } ,
73+ packages : test . packages || [ ] ,
7374 } ) ;
7475
7576 await job . prime ( ) ;
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ class Job {
188188 proc_info . gid = this . gid ;
189189 }
190190 if ( options . env ) {
191- proc_info . env = options . env ;
191+ proc_info . env = { ... process . env , ... options . env } ;
192192 }
193193 const proc = cp . spawn ( proc_call [ 0 ] , proc_call . splice ( 1 ) , {
194194 stdio : 'pipe' ,
@@ -291,7 +291,9 @@ class Job {
291291 const env = { } ;
292292 if ( install && install . stdout !== '' && install . code === 0 ) {
293293 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 ( ':' ) ;
295297 }
296298
297299 const code_files = this . files . filter ( file => file . encoding == 'utf8' ) ;
You can’t perform that action at this time.
0 commit comments