This commit is contained in:
Kovid Goyal 2021-10-04 20:58:08 +05:30
parent f70125774e
commit b8fce28cb7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -184,11 +184,11 @@ class Test(Command):
if opts.under_sanitize: if opts.under_sanitize:
if 'libasan' not in os.environ.get('LD_PRELOAD', ''): if 'libasan' not in os.environ.get('LD_PRELOAD', ''):
os.environ['LD_PRELOAD'] = os.path.abspath(subprocess.check_output('gcc -print-file-name=libasan.so'.split()).decode('utf-8').strip()) os.environ['LD_PRELOAD'] = os.path.abspath(subprocess.check_output('gcc -print-file-name=libasan.so'.split()).decode('utf-8').strip())
os.environ['ASAN_OPTIONS'] = 'detect_leaks=0' os.environ['ASAN_OPTIONS'] = 'detect_leaks=0'
os.environ['PYCRYPTODOME_DISABLE_DEEPBIND'] = '1' # https://github.com/Legrandin/pycryptodome/issues/558 os.environ['PYCRYPTODOME_DISABLE_DEEPBIND'] = '1' # https://github.com/Legrandin/pycryptodome/issues/558
self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}') self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}')
sys.stdout.flush() sys.stdout.flush()
os.execl('setup.py', *sys.argv) os.execl('setup.py', *sys.argv)
from calibre.utils.run_tests import ( from calibre.utils.run_tests import (
filter_tests_by_name, remove_tests_by_name, run_cli filter_tests_by_name, remove_tests_by_name, run_cli
) )