mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-07 22:42:10 +08:00
rake spec: print an error mesg in case there are no spec files
This commit is contained in:
@@ -11,6 +11,11 @@ module Motion; module Project;
|
||||
ruby = File.join(config.bindir, 'ruby')
|
||||
llc = File.join(config.bindir, 'llc')
|
||||
|
||||
if config.spec_mode and config.spec_files.empty?
|
||||
$stderr.puts "No spec files in `#{config.specs_dir}'"
|
||||
exit 1
|
||||
end
|
||||
|
||||
# Locate SDK.
|
||||
sdk = config.sdk(platform)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user