From 5d47d1833b918a73673fae207c8d022afb082f3b Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 29 May 2019 12:20:33 +0200 Subject: [PATCH] DEV: prints timestamp at every docker:test commands (#7628) --- lib/tasks/docker.rake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index b35a2b655ef..5351bdc3bcc 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -32,6 +32,7 @@ # docker run -e SKIP_CORE=1 SINGLE_PLUGIN='my-awesome-plugin' -v $(pwd)/my-awesome-plugin:/var/www/discourse/plugins/my-awesome-plugin discourse/discourse_test:release def run_or_fail(command) + log(command) pid = Process.spawn(command) Process.wait(pid) $?.exitstatus == 0 @@ -47,6 +48,10 @@ def run_or_fail_prettier(*patterns) end end +def log(msg) + STDERR.puts "#{Time.now.iso8601}: #{msg}" +end + desc 'Run all tests (JS and code in a standalone environment)' task 'docker:test' do begin