Update test_passwd.py to replace tdLog.error with tdLog.exit

This commit is contained in:
Feng Chao 2024-11-05 15:46:36 +08:00 committed by GitHub
parent 25d34537db
commit 7ff0fb497a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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())