From 75a42f68b57300d2289d2ccb4d2d92c2ec4ad128 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sat, 24 Dec 2011 14:48:10 +0100 Subject: [PATCH] rake spec: print an error mesg in case there are no spec files --- lib/motion/project/builder.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index 3e19f59c..54cdfaa5 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -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)