Fix double escaping that isn't needed in a raw string

Change-Id: I119214cc037f7b73ec7cd2b02740a4271750d4ac
diff --git a/src/test/cord-api/Framework/utils/testCaseUtils.py b/src/test/cord-api/Framework/utils/testCaseUtils.py
index 41ed562..3ca5f61 100755
--- a/src/test/cord-api/Framework/utils/testCaseUtils.py
+++ b/src/test/cord-api/Framework/utils/testCaseUtils.py
@@ -64,13 +64,13 @@
     )
     child.expect(r"[pP]assword:")
     child.sendline("admin")
-    child.expect(r"\((\\x1b\[\d*;?\d+m){1,2}voltha(\\x1b\[\d*;?\d+m){1,2}\)")
+    child.expect(r"\((\x1b\[\d*;?\d+m){1,2}voltha(\x1b\[\d*;?\d+m){1,2}\)")
     time.sleep(10)
     child.sendline(cmd1)
     i = child.expect(
         [
-            r"\((\\x1b\[\d*;?\d+m){1,2}voltha(\\x1b\[\d*;?\d+m){1,2}\)",
-            r"\((\\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\\x1b\[\d*;?\d+m){1,2}\)",
+            r"\((\x1b\[\d*;?\d+m){1,2}voltha(\x1b\[\d*;?\d+m){1,2}\)",
+            r"\((\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\x1b\[\d*;?\d+m){1,2}\)",
         ]
     )
     if i == 0:
@@ -82,7 +82,7 @@
             output = open(log_dir + "/" + log_file2, "w")
             child.sendline(cmd2)
             child.expect(
-                r"\((\\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\\x1b\[\d*;?\d+m){1,2}\)"
+                r"\((\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\x1b\[\d*;?\d+m){1,2}\)"
             )
             output.write(child.before)
             output.close()
@@ -91,7 +91,7 @@
             output = open(log_dir + "/" + log_file3, "w")
             child.sendline(cmd3)
             child.expect(
-                r"\((\\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\\x1b\[\d*;?\d+m){1,2}\)"
+                r"\((\x1b\[\d*;?\d+m){1,2}.*device [0-9a-f]{16}(\x1b\[\d*;?\d+m){1,2}\)"
             )
             output.write(child.before)
             output.close()
@@ -107,9 +107,9 @@
     )
     child.expect(r"[pP]assword:")
     child.sendline("karaf")
-    child.expect(r"(\\x1b\[\d*;?\d+m){1,2}(onos>|karaf@root >) (\\x1b\[\d*;?\d+m){1,2}")
+    child.expect(r"(\x1b\[\d*;?\d+m){1,2}(onos>|karaf@root >) (\x1b\[\d*;?\d+m){1,2}")
     child.sendline(cmd)
-    child.expect(r"(\\x1b\[\d*;?\d+m){1,2}(onos>|karaf@root >) (\\x1b\[\d*;?\d+m){1,2}")
+    child.expect(r"(\x1b\[\d*;?\d+m){1,2}(onos>|karaf@root >) (\x1b\[\d*;?\d+m){1,2}")
 
     output.write(child.before)