From 7ccf0ae44184250d2b17a2350eabdf08c1d7d523 Mon Sep 17 00:00:00 2001 From: Ted Reed Date: Tue, 25 Aug 2009 01:14:56 -0700 Subject: [PATCH] Adds the architecture, branch, and platform extra_properties to the TAP archive. --- Rakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rakefile b/Rakefile index 4cd1d72..f6d2245 100644 --- a/Rakefile +++ b/Rakefile @@ -201,6 +201,11 @@ task :report do $meta['file_order'] = Array.new Task['test:all'].invoke $meta['stop_time'] = Time.now.to_i + $meta['extra_properties'] = { + 'Architecture' => `uname -p`.chomp, + 'Platform' => `uname -s`.chomp, + 'Branch' => `git status`.split('\n')[0].split(' ')[3] + } require 'yaml' File.open('report/meta.yml','w') do |f| YAML::dump($meta, f)