Skip to content

Commit

Permalink
Add extra_properties for submitter and commit (in lieu of version)
Browse files Browse the repository at this point in the history
  • Loading branch information
treed committed Aug 25, 2009
1 parent 7ccf0ae commit 3be9b00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -201,10 +201,15 @@ task :report do
$meta['file_order'] = Array.new
Task['test:all'].invoke
$meta['stop_time'] = Time.now.to_i
submitter = ENV['SMOLDER_SUBMITTER']
submitter = "#{`whoami`.chomp}@#{`hostname`.chomp}" if submitter = ''
commit = `git log -1 --format=%H`.chomp
$meta['extra_properties'] = {
'Architecture' => `uname -p`.chomp,
'Platform' => `uname -s`.chomp,
'Branch' => `git status`.split('\n')[0].split(' ')[3]
'Branch' => `git status`.split('\n')[0].split(' ')[3],
'Submitter' => submitter,
'Commit' => commit
}
require 'yaml'
File.open('report/meta.yml','w') do |f|
Expand Down

0 comments on commit 3be9b00

Please sign in to comment.