@@ -385,14 +385,16 @@ def check_new_release(self, name: str, builddir: str = '_build', deps=None, prog
385385 return
386386 raise Exception (f'Wrap { name } failed to configure due to bugs in the wrap, rather than due to being unsupported' )
387387 subprocess .check_call (['meson' , 'compile' , '-C' , builddir ], env = meson_env )
388- try :
389- subprocess .check_call (['meson' , 'test' , '-C' , builddir , '--suite' , name , '--print-errorlogs' ])
390- except subprocess .CalledProcessError :
391- log_file = Path (builddir , 'meson-logs' , 'testlog.txt' )
392- print ('::group::==== testlog.txt ====' )
393- print (log_file .read_text (encoding = 'utf-8' ))
394- print ('::endgroup::' )
395- raise
388+ if not ci .get ('skip_tests' , False ):
389+ test_options = ci .get ('test_options' , [])
390+ try :
391+ subprocess .check_call (['meson' , 'test' , '-C' , builddir , '--suite' , name , '--print-errorlogs' ] + test_options )
392+ except subprocess .CalledProcessError :
393+ log_file = Path (builddir , 'meson-logs' , 'testlog.txt' )
394+ print ('::group::==== testlog.txt ====' )
395+ print (log_file .read_text (encoding = 'utf-8' ))
396+ print ('::endgroup::' )
397+ raise
396398 subprocess .check_call (['meson' , 'install' , '-C' , builddir , '--destdir' , 'pkg' ])
397399
398400 def is_permitted_file (self , subproject : str , filename : str ):
0 commit comments