Make run_tests.py suppressions flag fail with a clear error on unsupported platforms (flutter/engine#28235)

This commit is contained in:
Brandon DeRosier 2021-08-20 14:48:30 -07:00 committed by GitHub
parent 1ee6a40d4e
commit a5adf663ce

View File

@ -564,6 +564,7 @@ def main():
assert os.path.exists(build_dir), 'Build variant directory %s does not exist!' % build_dir
if args.sanitizer_suppressions:
assert IsLinux() or IsMac(), "The sanitizer suppressions flag is only supported on Linux and Mac."
file_dir = os.path.dirname(os.path.abspath(__file__))
command = [
"env", "-i", "bash",