File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
scripts/mbedtls_framework Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1515import shutil
1616import subprocess
1717import sys
18- from typing import List
18+ from typing import List , Optional
1919from pathlib import Path
2020
2121from . import build_tree
@@ -144,7 +144,7 @@ def test_compliance(library_build_dir: str,
144144
145145def main (psa_arch_tests_ref : str ,
146146 patch : str = '' ,
147- expected_failures : List [int ] = [] ) -> None :
147+ expected_failures : Optional [ List [int ]] = None ) -> None :
148148 """Command line entry point.
149149
150150 psa_arch_tests_ref: tag or sha to use for the arch-tests.
@@ -166,6 +166,8 @@ def main(psa_arch_tests_ref: str,
166166 if args .build_dir is not None :
167167 build_dir = args .build_dir [0 ]
168168
169+ if expected_failures is None :
170+ expected_failures = []
169171 if args .expected_failures is not None :
170172 expected_failures_list = [int (i ) for i in args .expected_failures ]
171173 else :
You can’t perform that action at this time.
0 commit comments