Skip to content

Commit acce4a0

Browse files
authored
Merge pull request llvm#29286 from Rostepher/preset-substitutions-in-tests
[NFC][Build System: build-script] Update the auto-generated preset parsing tests to always supply and exhaustive set of substitutions.
2 parents 5f62deb + bfeb134 commit acce4a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build_swift/tests/test_driver_arguments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from . import expected_options as eo
1515
from . import utils
16+
from .test_presets import PRESET_DEFAULTS
1617
from .utils import TestCase, UTILS_PATH, redirect_stdout
1718
from ..build_swift import argparse
1819
from ..build_swift import driver_arguments
@@ -41,7 +42,7 @@ def _load_all_presets(preset_files):
4142

4243
presets = dict()
4344
for name in preset_names:
44-
preset = parser.get_preset(name, raw=True)
45+
preset = parser.get_preset(name, vars=PRESET_DEFAULTS)
4546
args = migration.migrate_swift_sdks(preset.format_args())
4647

4748
presets[name] = args

0 commit comments

Comments
 (0)