diff options
author | Hans de Graaff <hans@degraaff.org> | 2009-11-30 20:53:34 +0100 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2009-11-30 20:53:34 +0100 |
commit | 3ac0d95ce1eb1b21478a8ba02bae8d71e32dc4d9 (patch) | |
tree | afa211d97c0501ec977344be28cc0cea5fbeadc6 | |
parent | Add missing ${D} so that we only check the files installed by this package. (diff) | |
download | ruby-scripts-3ac0d95ce1eb1b21478a8ba02bae8d71e32dc4d9.tar.gz ruby-scripts-3ac0d95ce1eb1b21478a8ba02bae8d71e32dc4d9.tar.bz2 ruby-scripts-3ac0d95ce1eb1b21478a8ba02bae8d71e32dc4d9.zip |
Avoid running rake when there is no test task.
-rw-r--r-- | ruby-ng-testbed/eclass/ruby-fakegem.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ruby-ng-testbed/eclass/ruby-fakegem.eclass b/ruby-ng-testbed/eclass/ruby-fakegem.eclass index 14f3ade..2b3b04c 100644 --- a/ruby-ng-testbed/eclass/ruby-fakegem.eclass +++ b/ruby-ng-testbed/eclass/ruby-fakegem.eclass @@ -182,7 +182,11 @@ all_ruby_compile() { each_fakegem_test() { local rubyflags= - ${RUBY} ${rubyflags} -S rake ${RUBY_FAKEGEM_TASK_TEST} || die "tests failed" + if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then + ${RUBY} ${rubyflags} -S rake ${RUBY_FAKEGEM_TASK_TEST} || die "tests failed" + else + echo "No test task defined, skipping tests." + fi } each_ruby_test() { |