Skip to content

Commit

Permalink
Merge pull request #37 from rock-core/fix_roby_sql_path
Browse files Browse the repository at this point in the history
fix: roby.sql is now in code/, update Dataset#roby_sql_index_path
  • Loading branch information
doudou authored Sep 15, 2023
2 parents 3d6f4b9 + 6b2d87d commit f5f405a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/syskit/log/datastore/dataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ def roby
#
# @return [Pathname]
def roby_sql_index_path
p = dataset_path + "roby.sql"
return p if p.exist?

cache_path + "roby.sql"
end

Expand Down
1 change: 1 addition & 0 deletions test/datastore/import_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def tty_reporter

assert (imported.dataset_path + "roby.sql").exist?
assert index_path.exist?
assert imported.roby_sql_index_path.exist?

index = Roby::DRoby::Logfile::Index.read(index_path)
assert index.valid_for?(log_path)
Expand Down

0 comments on commit f5f405a

Please sign in to comment.