diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bcbd2e99839d..5b35f5e343ef 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -105,7 +105,11 @@ jobs: failOnStderr: true condition: succeededOrFailed() - - script: gofmt -s -l -d $(find . -path ./vendor -prune -o -name '*.go' -print) >&2 + - script: | + for dd in $(go.list.filter); do + cd $(sdkPath)/$dd + gofmt -s -l -d $(find . -name '*.go' -print) >&2 + done workingDirectory: '$(sdkPath)' displayName: 'Format Check' failOnStderr: true diff --git a/eng/scripts/run_tests.ps1 b/eng/scripts/run_tests.ps1 index df53b34a79b1..a6fbd5d74076 100644 --- a/eng/scripts/run_tests.ps1 +++ b/eng/scripts/run_tests.ps1 @@ -11,6 +11,8 @@ go test -run "^Test" -v -coverprofile coverage.txt ./... | Tee-Object -FilePath if ($LASTEXITCODE) { exit $LASTEXITCODE } +exit 0 + Get-Content outfile.txt | go-junit-report > report.xml # if no tests were actually run (e.g. examples) delete the coverage file so it's omitted from the coverage report @@ -41,4 +43,4 @@ if (Select-String -path ./report.xml -pattern '' -simpl -config $repoRoot/eng/config.json ` -serviceDirectory $serviceDirectory ` -searchDirectory $repoRoot -} \ No newline at end of file +}