From f97e42e957e55c1091a1a9327e7ebe3dfa7c901d Mon Sep 17 00:00:00 2001 From: Feng Chao Date: Thu, 7 Nov 2024 17:23:52 +0800 Subject: [PATCH] Update test_passwd.py to add debug logs --- tests/army/user/test_passwd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/army/user/test_passwd.py b/tests/army/user/test_passwd.py index 08445b4523..c205273973 100644 --- a/tests/army/user/test_passwd.py +++ b/tests/army/user/test_passwd.py @@ -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: