rake spec: print an error mesg in case there are no spec files

This commit is contained in:
Laurent Sansonetti
2011-12-24 14:48:10 +01:00
parent de842f19db
commit 75a42f68b5

View File

@@ -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)