From 4969a88dfae2de782e34bab9de89f1799b3ce4fb Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 27 Jul 2015 16:08:12 -0700 Subject: [PATCH] Put lastModified in the email as well --- e2etestrunner.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/e2etestrunner.js b/e2etestrunner.js index 2384b29..08b6d31 100755 --- a/e2etestrunner.js +++ b/e2etestrunner.js @@ -16,7 +16,6 @@ var debug = require('debug')('e2e:runner'), 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 gLatestBoxVersion = null; // for sending mail var gNpmTest = null; function cleanExit() { @@ -53,10 +52,9 @@ function runTestsIfNeeded(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); gLastModified = lastModified; - gLatestBoxVersion = latestBoxVersion; callback(error); }); }); @@ -79,8 +77,8 @@ function getLatestBoxVersion(callback) { }); } -function runTests(latestETag, latestBoxVersion, callback) { - var topic = util.format('box version: %s etag: %s', latestBoxVersion, latestETag); +function runTests(latestETag, latestBoxVersion, lastModified, callback) { + var topic = util.format('box version: %s etag: %s lastModified:%s', latestBoxVersion, latestETag, lastModified); debug('Running tests for %s', topic);