Ported get_unit_test_report.py to python3
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
Change-Id: I7bece1b555335290fc85ae47fa607075a7c1f51e
diff --git a/scripts/get_unit_test_report.py b/scripts/get_unit_test_report.py
index b9c8bb9..1c46b78 100755
--- a/scripts/get_unit_test_report.py
+++ b/scripts/get_unit_test_report.py
@@ -86,7 +86,7 @@
try:
os.mkdir(working_dir)
except OSError as e:
- answer = raw_input("Target directory " + working_dir + " already exists. "
+ answer = input("Target directory " + working_dir + " already exists. "
+ "Do you want to delete [Y/N]: ")
if answer == "Y":
try:
@@ -272,6 +272,7 @@
for report in report_names)
try:
result = subprocess.check_output(find_cmd, shell=True)
+ result = result.decode("utf-8")
except subprocess.CalledProcessError as e:
logger.debug(e.output)
logger.debug(e.cmd)