Skip to content

Commit

Permalink
Merge pull request #607 from whetherharder/master
Browse files Browse the repository at this point in the history
__discover_jmeter_udp_port fix
  • Loading branch information
fomars committed Jun 5, 2018
2 parents 40ca96c + 87593e5 commit 0ca241f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yandextank/plugins/JMeter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Plugin(GeneratorPlugin):
SECTION = 'jmeter'
SHUTDOWN_TEST = 'Shutdown'
STOP_TEST_NOW = 'Stop Test'
DISCOVER_PORT_PATTERN = 'Waiting for possible shutdown message on port (?P<port>\d+)'
DISCOVER_PORT_PATTERN = 'Waiting for possible .* message on port (?P<port>\d+)'

def __init__(self, core, cfg):
super(Plugin, self).__init__(core, cfg)
Expand Down Expand Up @@ -171,7 +171,7 @@ def __discover_jmeter_udp_port(self):
Waiting for possible shutdown message on port 4445
"""
r = re.compile(self.DISCOVER_PORT_PATTERN)
with open(self.jmeter_log) as f:
with open(self.process_stderr.name, 'r') as f:
cnt = 0
while self.process.pid and cnt < 10:
line = f.readline()
Expand Down

0 comments on commit 0ca241f

Please sign in to comment.