Skip to content

Commit 582b6d9

Browse files
committed
update message about finding a single application to run the tests
1 parent a1dab28 commit 582b6d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ const resourcePath = CONFIG.repositoryRootPath
4949
let executablePath
5050
if (process.platform === 'darwin') {
5151
const executablePaths = glob.sync(path.join(CONFIG.buildOutputPath, '*.app'))
52-
assert(executablePaths.length === 1, `More than one application to run tests against was found. ${executablePaths.join(',')}`)
52+
assert(executablePaths.length === 1, `A single application to run tests against was not found. ${executablePaths.join(',')}`)
5353
executablePath = path.join(executablePaths[0], 'Contents', 'MacOS', path.basename(executablePaths[0], '.app'))
5454
} else if (process.platform === 'linux') {
5555
const executablePaths = glob.sync(path.join(CONFIG.buildOutputPath, 'atom-*', 'atom'))
56-
assert(executablePaths.length === 1, `More than one application to run tests against was found. ${executablePaths.join(',')}`)
56+
assert(executablePaths.length === 1, `A single application to run tests against was not found. ${executablePaths.join(',')}`)
5757
executablePath = executablePaths[0]
5858
} else if (process.platform === 'win32') {
5959
const executablePaths = glob.sync(path.join(CONFIG.buildOutputPath, '**', 'atom*.exe'))
60-
assert(executablePaths.length === 1, `More than one application to run tests against was found. ${executablePaths.join(',')}`)
60+
assert(executablePaths.length === 1, `A single application to run tests against was not found. ${executablePaths.join(',')}`)
6161
executablePath = executablePaths[0]
6262
} else {
6363
throw new Error('##[error] Running tests on this platform is not supported.')

0 commit comments

Comments
 (0)