From 89eaa923f03faf50627066e43d4336cffb7842fa Mon Sep 17 00:00:00 2001
From: Satyajit Desai <sadesai@codeaurora.org>
Date: Thu, 5 Jan 2017 10:58:00 -0800
Subject: [PATCH] ldrp-v2: Change to handle descrepancy between tools usage

This change will handle the naming convention difference across
various tools. This is a temporary change till we move to a
consistent naming convention across the different tools.

Change-Id: I4279647a0f4eb08d2943106afabd3c1bcf06f749
---
 linux-ramdump-parser-v2/debug_image_v2.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/linux-ramdump-parser-v2/debug_image_v2.py b/linux-ramdump-parser-v2/debug_image_v2.py
index b6b3655..5545f50 100755
--- a/linux-ramdump-parser-v2/debug_image_v2.py
+++ b/linux-ramdump-parser-v2/debug_image_v2.py
@@ -335,9 +335,13 @@ class DebugImage_v2():
         qtf_dir = os.path.join(out_dir, 'qtf')
         workspace = os.path.join(qtf_dir, 'qtf.workspace')
         qtf_out = os.path.join(out_dir, 'qtf.txt')
-        chipset = 'msm' + str(ram_dump.hw_id)
+        chipset = 'msm' + ram_dump.hw_id
         hlos = 'LA'
 
+        #Temp change to handle descripancy between tools usage
+        if chipset == 'msmcobalt':
+            chipset = 'msm8998'
+
         # Resolve any port collisions with other running qtf_server instances
         for tries in range(max_tries):
             port = random.randint(12000, 13000)
-- 
GitLab