summaryrefslogtreecommitdiff
path: root/bin/custodian-enqueue
diff options
context:
space:
mode:
Diffstat (limited to 'bin/custodian-enqueue')
-rwxr-xr-xbin/custodian-enqueue11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 7dd864b..f4f9f0e 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -85,16 +85,25 @@ if __FILE__ == $PROGRAM_NAME
exit(1)
end
+ #
+ # Did we fail to add any tests to the queue?
+ #
+ failed = false
+
mon.jobs.each do |test|
if ENV['TEST']
# nop
elsif ENV['DUMP']
puts test
else
- queue.add(test.to_s)
+ failed = true unless queue.add(test.to_s)
end
end
+ if ( failed )
+ puts "We failed to add at least one job to the queue."
+ exit( 1 )
+ end
end