Skip to content

Commit

Permalink
Fix XHarness diagnostic file parsing in Helix SDK (#8289)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Dec 21, 2021
1 parent 318c30c commit 0cd94b1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,19 @@ def analyze_operation(command: str, platform: str, device: str, is_device: bool,
device = operation.get('device')
target = operation.get('target')
target_os = operation.get('targetOS')
is_device = operation.get('isDevice', False)
is_device = operation.get('isDevice', None)

try:
analyze_operation(command, platform, device, is_device, target, exit_code)
except Exception as e:
print(f' Failed to analyze operation: {e}')

custom_dimensions = dict()
custom_dimensions['command'] = operation['command']
custom_dimensions['platform'] = operation['platform']
custom_dimensions['isDevice'] = 'true' if operation['isDevice'] else 'false'
custom_dimensions['command'] = command
custom_dimensions['platform'] = platform

if is_device is not None:
custom_dimensions['isDevice'] = 'true' if str(is_device).lower() == 'true' else 'false'

if 'target' in operation:
if 'targetOS' in operation:
Expand Down

0 comments on commit 0cd94b1

Please sign in to comment.