From 5812b2f13db7aab791145257a8e08a3149a36ec9 Mon Sep 17 00:00:00 2001 From: Jussi Vatjus-Anttila Date: Fri, 24 Feb 2017 14:58:59 +0200 Subject: [PATCH] possibility to link test execution profiling (#28) format any json object, e.g. ``` { "flash_duration": 10} ``` --- app/models/results.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/results.js b/app/models/results.js index 437f22a9..ac8ab122 100644 --- a/app/models/results.js +++ b/app/models/results.js @@ -33,6 +33,7 @@ var ResultSchema = new Schema({ verdict: { type: String, required: true, enum: ['pass', 'fail', 'inconclusive', 'blocked', 'error'] }, note: {type: String, default: ''}, duration: {type: Number}, //seconds + profiling: {type: Schema.Types.Mixed}, env: { //environment information ref: {type: Schema.Types.ObjectId, ref: 'Resource' }, rackId: {type: String}, @@ -95,7 +96,6 @@ ResultSchema.plugin( QueryPlugin ); //install QueryPlugin ResultSchema.pre('validate', function (next) { var err; var buildSha1 = _.get(this, 'exec.sut.buildSha1'); - console.log(buildSha1, this) if (buildSha1) { winston.debug('result build sha1: ', buildSha1); Build.findOne({'files.sha1': buildSha1}, (err, build) => {