Skip to content

[DO NOT MERGE] Tests for swift-format #77029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions utils/build-windows-toolchain.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

setlocal enableextensions enabledelayedexpansion

SET

:: Work around CI invocation in vsdevcmd
:: The build relies on build.ps1, which should not be called in a vs dev cmd
if "%VSCMD_ARG_HOST_ARCH%"=="" goto Start
Expand Down Expand Up @@ -57,10 +59,10 @@ set TEMP=%BuildRoot%\tmp
set TMP=%BuildRoot%\tmp
set TMPDIR=%BuildRoot%\tmp

set NINJA_STATUS=[%%f/%%t][%%p][%%es]
set NINJA_STATUS=[%%f/%%t][%%p][%%es]

:: Build the -Test argument, if any, by subtracting skipped tests
set TestArg=-Test lld,swift,dispatch,foundation,xctest,
set TestArg=-Test lld,swift,dispatch,foundation,xctest,swift-format,
for %%I in (%SKIP_TESTS%) do (call set TestArg=%%TestArg:%%I,=%%)
if "%TestArg:~-1%"=="," (set TestArg=%TestArg:~0,-1%) else (set TestArg= )

Expand Down
3 changes: 2 additions & 1 deletion utils/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,8 @@ function Build-SPMProject {
"-Xbuild-tools-swiftc", "-I$SDKInstallRoot\usr\lib\swift",
"-Xbuild-tools-swiftc", "-L$SDKInstallRoot\usr\lib\swift\windows",
"-Xcc", "-I$SDKInstallRoot\usr\lib\swift",
"-Xlinker", "-L$SDKInstallRoot\usr\lib\swift\windows"
"-Xlinker", "-L$SDKInstallRoot\usr\lib\swift\windows",
"--verbose"
)
if ($DebugInfo) {
if ($SwiftDebugFormat -eq "dwarf") {
Expand Down
2 changes: 2 additions & 0 deletions utils/update_checkout/update_checkout/update_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def run_for_repo_and_each_submodule_rec(cmd):
full_target = full_target_name('origin', checkout_target)
shell.run(['git', 'reset', '--hard', full_target],
echo=True, prefix=prefix)
shell.run(['git', 'status'],
echo=True, prefix=prefix)
return

# Query whether we have a "detached HEAD", which will mean that
Expand Down