Skip to content

Commit

Permalink
Fix for #941. Sets the type of test independent of fast_mode in esmon…
Browse files Browse the repository at this point in the history
…d archiver
  • Loading branch information
arlake228 committed Nov 5, 2019
1 parent 6007134 commit 7a667b8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pscheduler-archiver-esmond/esmond/esmond_util.py
Expand Up @@ -309,6 +309,14 @@ def __init__(self,
self.metadata = { 'event-types': [] }
self.data = []

# Set test type outside of fastmode since raw record may need it
##set test type to new value if provided
if test_type:
self.test_type = test_type
##may be overridden by subclass, so use value even if not in constructor params
if self.test_type:
self.metadata['pscheduler-test-type'] = self.test_type

if not fast_mode:
#determine if we are forcing an ip-version
ip_version = None
Expand All @@ -321,13 +329,6 @@ def __init__(self,
#set misc fields
self.metadata['tool-name'] = tool_name
self.metadata['time-duration'] = duration

#set test type to new value if provided
if test_type:
self.test_type = test_type
#may be overridden by subclass, so use value even if not in constructor params
if self.test_type:
self.metadata['pscheduler-test-type'] = self.test_type

#Handle event types
summary_map = DEFAULT_SUMMARIES
Expand Down

0 comments on commit 7a667b8

Please sign in to comment.