Comment why is used
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py
index b8a1288..5fe85b7 100755
--- a/tests/scripts/check-names.py
+++ b/tests/scripts/check-names.py
@@ -540,6 +540,8 @@
self.set_return_code(2)
raise error
finally:
+ # Put back the original config regardless of there being errors.
+ # Works also for keyboard interrupts.
shutil.move("include/mbedtls/mbedtls_config.h.bak",
"include/mbedtls/mbedtls_config.h")