diff --git a/tests/scripts/generate_psa_tests.py b/tests/scripts/generate_psa_tests.py index 16e27ee6b..1e5d2041b 100755 --- a/tests/scripts/generate_psa_tests.py +++ b/tests/scripts/generate_psa_tests.py @@ -715,11 +715,8 @@ def main(args): # List in a cmake list format (i.e. ';'-separated) if options.list_for_cmake: filenames = [] - for name in sorted(generator.TARGETS): - if ';' in generator.filename_for(name): - raise ValueError('Cannot pass filename containing \';\' to cmake: ' + name) - filenames.append(generator.filename_for(name)) - print(';'.join(filenames), end='') + print(';'.join(generator.filename_for(name) + for name in sorted(generator.TARGETS)), end='') return if options.targets: # Allow "-" as a special case so you can run