From 7ff0fb497a7a924a1665c4dfd966b51457b81a64 Mon Sep 17 00:00:00 2001 From: Feng Chao Date: Tue, 5 Nov 2024 15:46:36 +0800 Subject: [PATCH] Update test_passwd.py to replace tdLog.error with tdLog.exit --- tests/army/user/test_passwd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/army/user/test_passwd.py b/tests/army/user/test_passwd.py index 2d448b8f0e..ac82ee0d55 100644 --- a/tests/army/user/test_passwd.py +++ b/tests/army/user/test_passwd.py @@ -13,7 +13,7 @@ class TDTestCase(TBase): p = subprocess.Popen(c_file_path, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() if 0 != p.returncode: - tdLog.error("Failed to run passwd test with output: %s \n error: %s" % (out, err)) + tdLog.exit("Failed to run passwd test with output: %s \n error: %s" % (out, err)) tdLog.success(f"{__file__} successfully executed") tdCases.addLinux(__file__, TDTestCase())