Преглед изворни кода

test: fix multiple devices cases fail on python3

He Yin Ling пре 6 година
родитељ
комит
ca3b2a8909
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/unit-test-app/unit_test.py

+ 1 - 1
tools/unit-test-app/unit_test.py

@@ -344,7 +344,7 @@ class Handler(threading.Thread):
 
         def device_wait_action(data):
             start_time = time.time()
-            expected_signal = data[0]
+            expected_signal = data[0].encode('utf-8')
             while 1:
                 if time.time() > start_time + self.timeout:
                     Utility.console_log("Timeout in device for function: %s" % self.child_case_name, color="orange")