Skip to content

Commit 008c04d

Browse files
authored
Add flag to skip integrated driver tests (#2884)
This can be used in cases where the compiler being used isn't compatible with the integrated driver. By default, we will still run the test with the integrated driver as well.
1 parent 6d93142 commit 008c04d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Utilities/bootstrap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ def add_build_args(parser):
130130
help="paths (relative to the project root) where to install build products [%(default)s]",
131131
default=["/tmp/swiftpm"],
132132
metavar="PATHS")
133+
parser.add_argument(
134+
"--skip-integrated-driver-tests",
135+
action="store_true",
136+
help="whether to skip tests with the integrated driver",
137+
default=True)
133138

134139
def add_test_args(parser):
135140
"""Configures the parser with the arguments necessary for the test action."""
@@ -303,6 +308,9 @@ def test(args):
303308
# Test SwiftPM.
304309
call_swiftpm(args, cmd)
305310

311+
if args.skip_integrated_driver_tests:
312+
return
313+
306314
# Build SwiftPM with the integrated driver.
307315
note("Bootstrap with the integrated Swift driver")
308316
build_swiftpm_with_swiftpm(args,integrated_swift_driver=True)

0 commit comments

Comments
 (0)