Put lastModified in the email as well

This commit is contained in:
Girish Ramakrishnan 2015-07-27 16:08:12 -07:00
parent 15cae34503
commit 4969a88dfa

View File

@ -16,7 +16,6 @@ var debug = require('debug')('e2e:runner'),
debug.log = console.log.bind(console); debug.log = console.log.bind(console);
var gLastModified = null; // do not use etag since it only hashes body. touching file to rerun tests is nice var gLastModified = null; // do not use etag since it only hashes body. touching file to rerun tests is nice
var gLatestBoxVersion = null; // for sending mail
var gNpmTest = null; var gNpmTest = null;
function cleanExit() { function cleanExit() {
@ -53,10 +52,9 @@ function runTestsIfNeeded(callback) {
return callback(); return callback();
} }
runTests(latestETag, latestBoxVersion, function (error) { runTests(latestETag, latestBoxVersion, lastModified, function (error) {
debug('Finished running tests for etag %s / lm %s: %s', latestETag, lastModified, error); debug('Finished running tests for etag %s / lm %s: %s', latestETag, lastModified, error);
gLastModified = lastModified; gLastModified = lastModified;
gLatestBoxVersion = latestBoxVersion;
callback(error); callback(error);
}); });
}); });
@ -79,8 +77,8 @@ function getLatestBoxVersion(callback) {
}); });
} }
function runTests(latestETag, latestBoxVersion, callback) { function runTests(latestETag, latestBoxVersion, lastModified, callback) {
var topic = util.format('box version: %s etag: %s', latestBoxVersion, latestETag); var topic = util.format('box version: %s etag: %s lastModified:%s', latestBoxVersion, latestETag, lastModified);
debug('Running tests for %s', topic); debug('Running tests for %s', topic);