Skip to content

Commit

Permalink
Fix rally-tracks-compat nox test
Browse files Browse the repository at this point in the history
  • Loading branch information
favilo committed Jun 21, 2024
1 parent c8bae0a commit 672bebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions esrally/track/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,10 +1226,11 @@ def load(self):
# get dependent libraries installed in a prior step. ensure dir exists to make sure loading works correctly.
os.makedirs(paths.libs(), exist_ok=True)
sys.path.insert(0, paths.libs())
root_module = self.loader.load()
root_modules = self.loader.load()
try:
# every module needs to have a register() method
root_module.register(self)
for module in root_modules:
module.register(self)
except BaseException:
msg = "Could not register track plugin at [%s]" % self.loader.root_path
logging.getLogger(__name__).exception(msg)
Expand Down

0 comments on commit 672bebd

Please sign in to comment.