Update test_passwd.py to add debug logs

This commit is contained in:
Feng Chao 2024-11-07 17:23:52 +08:00 committed by GitHub
parent 21ceac423f
commit f97e42e957
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ class TDTestCase(TBase):
def run(self):
apiPath = self.apiPath()
tdLog.info(f"api path: {apiPath}")
p = subprocess.Popen(f"ls {apiPath}", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
tdLog.info(f"test files: {out}")
if apiPath:
test_file_cmd = os.sep.join([apiPath, "passwdTest localhost"])
try: