Mailinglist Archive: yast-commit (2113 mails)

< Previous Next >
[yast-commit] <rest-service> master : Pass --verbose and --trace down to other rake processes
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Wed, 30 Sep 2009 13:42:00 +0200
  • Message-id: <E1MsxZn-0002Yh-IX@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 0f0cd36008fadde6666a2a8e5ff8f9b8e24104e7
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Wed Sep 30 13:42:00 2009 +0200

Pass --verbose and --trace down to other rake processes
---
Rakefile | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Rakefile b/Rakefile
index ad554b4..2bc40ec 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,6 @@
+tracing = (Rake.application.options.trace)?"--trace":""
+verbose = (Rake.application.options.verbose)?"--verbose":""
+
require 'rake'
require 'rubygems'

@@ -23,8 +26,8 @@ task :default => :test
task task_name do
PROJECTS.each do |project|
Dir.chdir(project) do
- system %(#{env} #{$0} #{task_name})
- raise "Error on execute task #{task_name} on #{project}" if
$?.exitstatus != 0
+ system %(#{env} #{$0} #{tracing} #{task_name})
+ raise "Error on execute '#{$0} #{tracing} #{verbose} #{task_name}'
inside #{project}/" if $?.exitstatus != 0
end
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages