File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,19 @@ macro_rules! run_cmd {
7373 . arg( "env" )
7474 . arg( & format!(
7575 "KAMELI_FILELIMIT={}" ,
76- $self. file_limit. to_string( )
76+ std:: env:: var( "KAMELI_FILELIMIT" ) . unwrap_or( $self. file_limit. to_string( ) )
77+ ) )
78+ . arg( & format!(
79+ "KAMELI_MEMLIMIT={}" ,
80+ std:: env:: var( "KAMELI_MEMLIMIT" ) . unwrap_or( $self. mem_limit. to_string( ) )
7781 ) )
78- . arg( & format!( "KAMELI_MEMLIMIT={}" , $self. mem_limit. to_string( ) ) )
7982 . arg( & format!(
8083 "KAMELI_TIMELIMIT={}" ,
81- $self. time_limit. to_string( )
84+ std :: env :: var ( "KAMELI_TIMELIMIT" ) . unwrap_or ( $self. time_limit. to_string( ) )
8285 ) )
8386 . arg( & format!(
8487 "KAMELI_PROCESSLIMIT={}" ,
85- $self. proc_limit. to_string( )
88+ std :: env :: var ( "KAMELI_PROCESSLIMIT" ) . unwrap_or ( $self. proc_limit. to_string( ) )
8689 ) )
8790 // this needs a better solution
8891 // TODO: unhardcore
You can’t perform that action at this time.
0 commit comments