Skip to content

Commit 2d2faa1

Browse files
committed
Revert temporary changes
1 parent e4365e7 commit 2d2faa1

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

azure-pipelines-official.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ extends:
149149
/bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog
150150
name: Test
151151
displayName: Test
152+
env:
153+
TESTINGPLATFORM_DEFAULT_HANG_TIMEOUT: 5m
152154

153155
- task: CopyFiles@2
154156
displayName: 'Copy binlogs'
@@ -217,6 +219,8 @@ extends:
217219
./test.sh --configuration $(_BuildConfig) --ci --test --integrationTest --nobl /bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog
218220
name: Test
219221
displayName: Tests
222+
env:
223+
TESTINGPLATFORM_DEFAULT_HANG_TIMEOUT: 5m
220224
221225
- task: 1ES.PublishBuildArtifacts@1
222226
displayName: 'Publish Test Results folders'

azure-pipelines.yml

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,13 @@ stages:
115115
# Because the build step is using -ci flag, restore is done in a local .packages directory.
116116
# We need to pass NUGET_PACKAGES so that when dotnet test is doing evaluation phase on the projects, it can resolve .props/.targets from packages and import them.
117117
# Otherwise, props/targets are not imported. It's important that they are imported so that IsTestingPlatformApplication ends up being set.
118-
# - script: dotnet test -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
119-
# name: Test
120-
# displayName: Test
121-
# env:
122-
# DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
123-
# NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
124-
# DOTNET_CLI_CONTEXT_VERBOSE: 1
125-
- script: Test.cmd
126-
-configuration $(_BuildConfig)
127-
-ci
128-
-nobl
129-
/bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog
118+
- script: dotnet test -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
119+
name: Test
120+
displayName: Test
130121
env:
131122
DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
132-
TESTINGPLATFORM_DEFAULT_HANG_TIMEOUT: 20m
123+
NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
124+
DOTNET_CLI_CONTEXT_VERBOSE: 1
133125

134126
- task: PublishBuildArtifacts@1
135127
displayName: 'Publish Test Results folders'
@@ -201,21 +193,13 @@ stages:
201193
# Because the build step is using -ci flag, restore is done in a local .packages directory.
202194
# We need to pass NUGET_PACKAGES so that when dotnet test is doing evaluation phase on the projects, it can resolve .props/.targets from packages and import them.
203195
# Otherwise, props/targets are not imported. It's important that they are imported so that IsTestingPlatformApplication ends up being set.
204-
# - script: dotnet test --solution NonWindowsTests.slnf -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
205-
# name: Test
206-
# displayName: Test
207-
# env:
208-
# DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
209-
# NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
210-
# DOTNET_CLI_CONTEXT_VERBOSE: 1
211-
212-
- script: |
213-
chmod +x ./test.sh
214-
./test.sh --configuration $(_BuildConfig) --ci --test --integrationTest --nobl /bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog
196+
- script: dotnet test --solution NonWindowsTests.slnf -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
215197
name: Test
216198
displayName: Test
217199
env:
218200
DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
201+
NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
202+
DOTNET_CLI_CONTEXT_VERBOSE: 1
219203

220204
- task: PublishBuildArtifacts@1
221205
displayName: 'Publish Test Results folders'
@@ -273,20 +257,13 @@ stages:
273257
# Because the build step is using -ci flag, restore is done in a local .packages directory.
274258
# We need to pass NUGET_PACKAGES so that when dotnet test is doing evaluation phase on the projects, it can resolve .props/.targets from packages and import them.
275259
# Otherwise, props/targets are not imported. It's important that they are imported so that IsTestingPlatformApplication ends up being set.
276-
# - script: dotnet test --solution NonWindowsTests.slnf -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
277-
# name: Test
278-
# displayName: Test
279-
# env:
280-
# DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
281-
# NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
282-
# DOTNET_CLI_CONTEXT_VERBOSE: 1
283-
- script: |
284-
chmod +x ./test.sh
285-
./test.sh --configuration $(_BuildConfig) --ci --test --integrationTest --nobl /bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog
260+
- script: dotnet test --solution NonWindowsTests.slnf -c $(_BuildConfig) --no-build -bl:$(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig)\TestStep.binlog --no-progress
286261
name: Test
287262
displayName: Test
288263
env:
289264
DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
265+
NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
266+
DOTNET_CLI_CONTEXT_VERBOSE: 1
290267

291268
- task: PublishBuildArtifacts@1
292269
displayName: 'Publish Test Results folders'

0 commit comments

Comments
 (0)