summaryrefslogtreecommitdiff
path: root/bin
diff options
authorBin Li <bin.li@canonical.com>2020-04-28 16:58:54 +0800
committerBin Li <bin.li@canonical.com>2020-04-28 16:58:54 +0800
commitf02233c76e78cb416bad763cde74f50b34f8f1b3 (patch)
treedd23cce941067b9db5e0ed05a7518a19bb551bb6 /bin
parent1e2803e5e432f40342613e78bf205fe6b929e6ab (diff)
* Sink device name changed to Hdmi in DMIC. (LP: #1875526)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gst_pipeline_test4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gst_pipeline_test b/bin/gst_pipeline_test
index f6b6703f..c7a9af54 100755
--- a/bin/gst_pipeline_test
+++ b/bin/gst_pipeline_test
@@ -22,8 +22,8 @@ def check_state(device):
data = sink_info.split("\n")
try:
- device_name = re.findall(".*Name:\s.*%s.*" % device, sink_info)[0].lstrip()
- sink = re.findall(".*Name:\s(.*%s.*)" % device, sink_info)[0].lstrip()
+ device_name = re.findall(".*Name:\s.*%s.*" % device, sink_info, re.IGNORECASE)[0].lstrip()
+ sink = re.findall(".*Name:\s(.*%s.*)" % device, sink_info, re.IGNORECASE)[0].lstrip()
status = data[data.index("\t" + device_name) - 1]
except (IndexError, ValueError):
logging.error("Failed to find status for device: %s" % device)