From 3a51228899ab4bb032ba2bbaeda4571563f1c3db Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 12 Dec 2014 13:53:52 -0800 Subject: [PATCH] Label output --- build/tasks/spec-task.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/tasks/spec-task.coffee b/build/tasks/spec-task.coffee index 07d6b2f6c..bb985bcce 100644 --- a/build/tasks/spec-task.coffee +++ b/build/tasks/spec-task.coffee @@ -11,8 +11,9 @@ module.exports = (grunt) -> packageSpecQueue = null - logDeprecations = ({stdout}={}) -> + logDeprecations = (label, {stdout}={}) -> if process.env.JANKY_SHA1 and stdout?.indexOf('Calls to deprecated functions') isnt -1 + grunt.log.error(label) grunt.log.error(stdout) getAppPath = -> @@ -58,7 +59,7 @@ module.exports = (grunt) -> fs.unlinkSync(path.join(packagePath, 'ci.log')) failedPackages.push path.basename(packagePath) if error - logDeprecations(results) + logDeprecations("#{path.basename(packagePath)} Specs", results) callback() modulesDirectory = path.resolve('node_modules') @@ -92,7 +93,7 @@ module.exports = (grunt) -> else # TODO: Restore concurrency on Windows packageSpecQueue.concurrency = concurrency - logDeprecations(results) + logDeprecations('Core Specs', results) callback(null, error)