Skip to content

Commit

Permalink
TestLib chaneg
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Nov 29, 2024
1 parent b4883ab commit fc89734
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pabot/SharedLibrary.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import absolute_import

from robot import __version__ as ROBOT_VERSION
from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
from robot.libraries.Remote import Remote
Expand All @@ -24,7 +25,11 @@ def __init__(self, name, args=None):
logger.debug(
"Not currently running pabot. Importing library for this process."
)
self._lib = RemoteLibraryFactory(TestLibrary(name, args=args).get_instance())
self._lib = RemoteLibraryFactory(
TestLibrary.from_name(name, args=args, variables=None, create_keywords=True).instance
if ROBOT_VERSION >= "7.0"
else TestLibrary(name, args=args).get_instance()
)
return
uri = BuiltIn().get_variable_value("${PABOTLIBURI}")
logger.debug("PabotLib URI %r" % uri)
Expand Down

0 comments on commit fc89734

Please sign in to comment.