diff --git a/testing/unit/tls/reports/tls_report_ext_local.html b/testing/unit/tls/reports/tls_report_ext_local.html
index c14e61d93..142e3a7f1 100644
--- a/testing/unit/tls/reports/tls_report_ext_local.html
+++ b/testing/unit/tls/reports/tls_report_ext_local.html
@@ -126,4 +126,4 @@
Extensions
-
+
\ No newline at end of file
diff --git a/testing/unit/tls/reports/tls_report_local.html b/testing/unit/tls/reports/tls_report_local.html
index 6cabc837b..36b20198e 100644
--- a/testing/unit/tls/reports/tls_report_local.html
+++ b/testing/unit/tls/reports/tls_report_local.html
@@ -141,4 +141,4 @@ Issuer
-
+
\ No newline at end of file
diff --git a/testing/unit/tls/reports/tls_report_no_cert_local.html b/testing/unit/tls/reports/tls_report_no_cert_local.html
index 34797e200..de2825e41 100644
--- a/testing/unit/tls/reports/tls_report_no_cert_local.html
+++ b/testing/unit/tls/reports/tls_report_no_cert_local.html
@@ -2,4 +2,4 @@ TLS Module
No TLS certificates found on the device
-
+
\ No newline at end of file
diff --git a/testing/unit/tls/tls_module_test.py b/testing/unit/tls/tls_module_test.py
index 9f4fee390..6d8c0b1c0 100644
--- a/testing/unit/tls/tls_module_test.py
+++ b/testing/unit/tls/tls_module_test.py
@@ -332,7 +332,6 @@ def tls_module_report_test(self):
monitor_capture_file=pcap_file,
tls_capture_file=pcap_file)
report_out_path = tls.generate_module_report()
-
with open(report_out_path, 'r', encoding='utf-8') as file:
report_out = file.read()
@@ -362,6 +361,11 @@ def tls_module_report_ext_test(self):
with open(LOCAL_REPORT_EXT, 'r', encoding='utf-8') as file:
report_local = file.read()
+ # Copy the generated html report to a new file
+ new_report_name = 'tls_report_ext_local.html'
+ new_report_path = os.path.join(OUTPUT_DIR, new_report_name)
+ shutil.copy(report_out_path, new_report_path)
+
self.assertEqual(report_out, report_local)
def tls_module_report_no_cert_test(self):
@@ -385,6 +389,11 @@ def tls_module_report_no_cert_test(self):
with open(LOCAL_REPORT_NO_CERT, 'r', encoding='utf-8') as file:
report_local = file.read()
+ # Copy the generated html report to a new file
+ new_report_name = 'tls_report_no_cert_local.html'
+ new_report_path = os.path.join(OUTPUT_DIR, new_report_name)
+ shutil.copy(report_out_path, new_report_path)
+
self.assertEqual(report_out, report_local)
def generate_tls_traffic(self,