Azure doesn't like trailing whitespace

This commit is contained in:
Ash Wilson
2019-02-11 13:31:53 -05:00
parent 65c0cc3122
commit 3b7ac36bec
4 changed files with 5 additions and 4 deletions

View File

@@ -69,7 +69,8 @@ function prepareEnv (suiteName) {
// Tell Jasmine to output this suite's results as a JUnit XML file to a subdirectory of the root, so that a
// CI system can interpret it.
const runPrefix = process.env.TEST_JUNIT_XML_RUN || ''
const outputPath = path.join(process.env.TEST_JUNIT_XML_ROOT, `${runPrefix}${suiteName}.xml`)
const filePath = (runPrefix.length > 0 ? runPrefix + ' ' : '') + suiteName + '.xml'
const outputPath = path.join(process.env.TEST_JUNIT_XML_ROOT, filePath)
env.TEST_JUNIT_XML_PATH = outputPath
}

View File

@@ -26,7 +26,7 @@ jobs:
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
TEST_JUNIT_XML_RUN: "Linux "
TEST_JUNIT_XML_RUN: Linux
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))

View File

@@ -46,7 +46,7 @@ jobs:
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
TEST_JUNIT_XML_RUN: "MacOS "
TEST_JUNIT_XML_RUN: MacOS
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))

View File

@@ -71,7 +71,7 @@ jobs:
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)\junit
TEST_JUNIT_XML_RUN: "Windows $(buildArch) "
TEST_JUNIT_XML_RUN: Windows $(buildArch)
BUILD_ARCH: $(buildArch)
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))