Skip to content

Commit 352d6fb

Browse files
committed
Exit build-script verify-source-code with non-zero exit code if files don’t match
Previously, `build-script.py verify-source-code` would just print an error if the generated files didn’t match, but return with exit code 0, which didn’t fail Swift CI.
1 parent 4806fc6 commit 352d6fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ def verify_source_code_command(args):
689689
"SwiftSyntax project and merge it alongside the main PR."
690690
"$ swift-syntax/build-script.py generate-source-code --toolchain /path/to/toolchain.xctoolchain/usr"
691691
)
692+
raise SystemExit(1)
692693

693694

694695
def build_command(args):

0 commit comments

Comments
 (0)