summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-02-21 18:20:30 +0100
committerChris Schlaeger <chris@linux.com>2015-02-21 18:20:30 +0100
commitb48b75ae4bffffa867396004f1809a94fd0ad5e7 (patch)
treec82bff05200d54058e7ea4d9479ac65650693a82 /lib
parentbdc7d05a19747b68d10eb0303c3472571aa3ce61 (diff)
downloadpostrunner-b48b75ae4bffffa867396004f1809a94fd0ad5e7.zip
New: Update HTML reports during check
Diffstat (limited to 'lib')
-rw-r--r--lib/postrunner/ActivitiesDB.rb2
-rw-r--r--lib/postrunner/Activity.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/postrunner/ActivitiesDB.rb b/lib/postrunner/ActivitiesDB.rb
index b66f6eb..87931cd 100644
--- a/lib/postrunner/ActivitiesDB.rb
+++ b/lib/postrunner/ActivitiesDB.rb
@@ -145,6 +145,8 @@ module PostRunner
def check
@activities.each { |a| a.check }
+ # Ensure that HTML index is up-to-date.
+ ActivityListView.new(self).update_html_index
end
def ref_by_fit_file(fit_file)
diff --git a/lib/postrunner/Activity.rb b/lib/postrunner/Activity.rb
index 0328d22..dbb19b1 100644
--- a/lib/postrunner/Activity.rb
+++ b/lib/postrunner/Activity.rb
@@ -114,7 +114,7 @@ module PostRunner
end
def check
- @fit_activity = load_fit_file
+ generate_html_view
Log.info "FIT file #{@fit_file} is OK"
end