Cardinal is now on smolder.parrot.org

Moru lateau at gmail.com
Sat Feb 12 10:06:32 UTC 2011


Hi all,

I got 404 when i tried to report smolder test.
so i made a patch and it works. check cardianl recent smoke reports.

http://smolder.parrot.org/app/projects/smoke_reports/10

this is patch.

diff --git a/Rakefile b/Rakefile
index de32759..7b972db 100644
--- a/Rakefile
+++ b/Rakefile
@@ -240,7 +240,30 @@ end

 desc "Submit a smolder report."
 task :smolder => "report.tar.gz" do
-    sh "curl -F \"architecture=#{get_arch}\" -F
\"platform=#{get_platform}\" -F \"revision=#{get_commit}\" -F
\"report_file=@report.tar.gz\"
http://smolder.parrot.org/app/public_projects/process_add_report/10"
+  puts 'Creating a smolder report. This will take only a few minutes...', ''
+
+  command = 'curl '
+  contents = {
+    :username => 'parrot-autobot',
+    :password => 'qa_rocks',
+    :comments => 'Submit a smolder report.',
+    :architecture => "#{get_arch}",
+    :revision => "#{get_commit}",
+    :report_file => '@report.tar.gz'
+  }
+  url = 'http://smolder.parrot.org/app/projects/process_add_report/10'
+
+  contents.each do |k, v|
+    command << %Q(-F "#{k.to_s}=#{v}" )
+  end
+  command << url
+  `#{command} || exit 1`
+
+  if $?.exitstatus == 0
+    puts 'Your report sumitted.', 'You can see other recent reports
at http://smolder.parrot.org/app/projects/smoke_reports/10'
+  else
+    puts 'Error occurred. Please contact Cardinal Team.', '#cardinal
on irc.parrot.org'
+  end
 end

 desc "Determine configuration information"
@@ -572,3 +595,4 @@ namespace :test do |ns|
         end
     end
 end
+

--
Moru DRS



On Sat, Feb 12, 2011 at 12:55 PM, Jonathan "Duke" Leto
<jonathan at leto.net> wrote:
> Howdy,
>
> I just added Cardinal to smolder.parrot.org and updated the setup.pir
> and Rakefile to submit smoke reports to the right place.
>
> Enjoy!
>
> Duke
>
> --
> Jonathan "Duke" Leto
> jonathan at leto.net
> http://leto.net
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>


More information about the parrot-dev mailing list