@@ -117,7 +117,7 @@ def __init__(self, json_file, args):
117117 prefix = 'dnt_dfuse_' )
118118 self .tmp_dir = None
119119 if args .class_name :
120- self .tmp_dir = join ('nlt_logs' , args .class_name )
120+ self .tmp_dir = join (args . log_base_dir , args .class_name )
121121 if os .path .exists (self .tmp_dir ):
122122 for old_file in os .listdir (self .tmp_dir ):
123123 os .unlink (join (self .tmp_dir , old_file ))
@@ -443,6 +443,11 @@ def get_base_env(clean=False):
443443 if http_proxy :
444444 env ['HTTPS_PROXY' ] = http_proxy
445445
446+ # If set, retain the COVFILE for bullseye code coverage
447+ covfile = os .environ .get ('COVFILE' )
448+ if covfile :
449+ env ['COVFILE' ] = covfile
450+
446451 # Enable this to debug memory errors, it has a performance impact but will scan the heap
447452 # for corruption. See DAOS-12735 for why this can cause problems in practice.
448453 # env['MALLOC_CHECK_'] = '3'
@@ -6842,6 +6847,7 @@ def main():
68426847 parser .add_argument ('--exclude-test' , action = 'append' ,
68436848 help = 'space separated list of tests to exclude' )
68446849 parser .add_argument ('--valgrind_verbose' , action = 'store_true' , help = 'Use --verbose w/ valgrind' )
6850+ parser .add_argument ('--log-base-dir' , default = 'nlt_logs' , help = 'Base directory for log files' )
68456851 parser .add_argument ('mode' , nargs = '*' )
68466852 args = parser .parse_args ()
68476853
0 commit comments