summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qusb.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iatec.biz>2020-10-02 14:12:09 +0200
committerManel Caro <mcaro@iatec.biz>2020-10-02 14:12:09 +0200
commitd4071b6579312b2fb265e379031f588354d35f3a (patch)
tree53d95591447d929468d216033f61a5853bdf56b1 /test-cli/test/tests/qusb.py
parent913261a70495e24df7a6cc4bc86c3770a717769f (diff)
downloadboard-d4071b6579312b2fb265e379031f588354d35f3a.zip
board-d4071b6579312b2fb265e379031f588354d35f3a.tar.gz
board-d4071b6579312b2fb265e379031f588354d35f3a.tar.bz2
solve usb error bug with quotes message
Diffstat (limited to 'test-cli/test/tests/qusb.py')
-rw-r--r--test-cli/test/tests/qusb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-cli/test/tests/qusb.py b/test-cli/test/tests/qusb.py
index 3182685..4f76d0c 100644
--- a/test-cli/test/tests/qusb.py
+++ b/test-cli/test/tests/qusb.py
@@ -69,6 +69,8 @@ class Qusb(unittest.TestCase):
return False, 'md5 check failed {}<>{}'.format(originalMD5, md5val)
except OSError as why:
return False,'Error: {} tranfer failed'.format(why.errno)
+ except sh.ErrorReturnCode as shError:
+ return False, 'USB Exception: tranfer failed'
except Exception as details:
return False, 'USB Exception: {} tranfer failed'.format(details)
return True, ''