Tests: check for the AddressSanitizer flag during discovery

This flag is necessary to either run or skip certain tests that have
specific behavior depending on whether AddressSanitizer is enabled.

For instance, some tests may fail only when the binary is compiled
with AddressSanitizer.
This commit is contained in:
Andrei Zeliankou
2024-02-07 16:22:18 +00:00
committed by andrey-zelenkov
parent 7883acc62d
commit 99da2f3c8e
2 changed files with 3 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ def discover_available(unit):
[unit['unitd'], '--version'], stderr=subprocess.STDOUT
).decode()
option.configure_flag['asan'] = '-fsanitize=address' in output_version
# wait for controller start
if Log.wait_for_record(r'controller started') is None: