@ -1523,6 +1523,19 @@ class TestHarness:
if namebase :
if namebase :
self . logfile_base + = ' - ' + namebase . replace ( ' ' , ' _ ' )
self . logfile_base + = ' - ' + namebase . replace ( ' ' , ' _ ' )
self . load_metadata ( )
ss = set ( )
for t in self . tests :
for s in t . suite :
ss . add ( s )
self . suites = list ( ss )
def get_console_logger ( self ) - > ' ConsoleLogger ' :
assert self . console_logger
return self . console_logger
def load_metadata ( self ) - > None :
startdir = os . getcwd ( )
startdir = os . getcwd ( )
try :
try :
os . chdir ( self . options . wd )
os . chdir ( self . options . wd )
@ -1536,16 +1549,6 @@ class TestHarness:
finally :
finally :
os . chdir ( startdir )
os . chdir ( startdir )
ss = set ( )
for t in self . tests :
for s in t . suite :
ss . add ( s )
self . suites = list ( ss )
def get_console_logger ( self ) - > ' ConsoleLogger ' :
assert self . console_logger
return self . console_logger
def load_tests ( self , file_name : str ) - > T . List [ TestSerialisation ] :
def load_tests ( self , file_name : str ) - > T . List [ TestSerialisation ] :
datafile = Path ( ' meson-private ' ) / file_name
datafile = Path ( ' meson-private ' ) / file_name
if not datafile . is_file ( ) :
if not datafile . is_file ( ) :