[PATCH compass-ci] lib/stats_wrapper.rb: warn if stats-script doesn't exists

31 Mar
2021
31 Mar
'21
10:39 a.m.
Signed-off-by: Lu Weitao <luweitaobe@163.com> --- lib/stats_wrapper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/stats_wrapper.rb b/lib/stats_wrapper.rb index faa81df..d7ef9ce 100644 --- a/lib/stats_wrapper.rb +++ b/lib/stats_wrapper.rb @@ -29,6 +29,11 @@ module StatsWrapper @stats_group = program_time || program @log = "#{RESULT_ROOT}/#{@stats_group}" + unless File.exist?("#{PROGRAM_DIR}/#{@program}") + warn "#{PROGRAM_DIR}/#{@program} doesn't exist" + return + end + return unless File.exist?("#{@log}.yaml") || pretreatment return unless create_tmpfile -- 2.23.0
1427
Age (days ago)
1427
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lu Weitao