Fault fixing for cmd_exec util method 90/68490/3
authorPanagiotis Karalis <panos.pkaralis@gmail.com>
Tue, 17 Sep 2019 08:55:58 +0000 (11:55 +0300)
committerPanagiotis Karalis <panos.pkaralis@gmail.com>
Wed, 18 Sep 2019 09:22:21 +0000 (12:22 +0300)
commit9b8d8fcc9f4f191374f730b13fcb0ce18905864c
tree9b6e11497df6ef9028577881afc8bfe175342ee2
parent005d868d68dbb0e70b3f92a685ea269c4f646fd7
Fault fixing for cmd_exec util method

When the 'dovetail run' command is assigned, the error
"TypeError: must be str, not bytes" is appeared.

Due to a different handling of strings in the Python3, this error
is appeared during of command execution (i.e. exec_cmd method).

Each piece of the string should be decoded, before it will be
appended to the rest one.

Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com>
Change-Id: I65629f3f76cc3e44f3926a744d00791ef588d2aa
dovetail/tests/unit/utils/test_dovetail_utils.py
dovetail/utils/dovetail_utils.py