mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:25:35 +00:00
[core] Disable LeakSanitizer in C++ unit tests (#14712)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
import argparse
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@@ -35,6 +36,7 @@ PLATFORMIO_OPTIONS = {
|
|||||||
|
|
||||||
|
|
||||||
def run_tests(selected_components: list[str]) -> int:
|
def run_tests(selected_components: list[str]) -> int:
|
||||||
|
os.environ["ASAN_OPTIONS"] = "detect_leaks=0"
|
||||||
return build_and_run(
|
return build_and_run(
|
||||||
selected_components=selected_components,
|
selected_components=selected_components,
|
||||||
tests_dir=COMPONENTS_TESTS_DIR,
|
tests_dir=COMPONENTS_TESTS_DIR,
|
||||||
|
|||||||
Reference in New Issue
Block a user