Skip to content

Commit

Permalink
possibility to link test execution profiling (#28)
Browse files Browse the repository at this point in the history
format any json object, e.g.
```
{ "flash_duration": 10}
```
  • Loading branch information
jupe authored Feb 24, 2017
1 parent 48c6b93 commit 5812b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 5812b2f

Please sign in to comment.