diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-10-09 15:25:33 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-10-09 15:51:31 +0800 |
commit | b3dcaa337fa91b3123fa08e8b8dd2e81184a91dd (patch) | |
tree | 6459b8f961a8245fd1aaef8ba870fddf45706b1a /doctor_tests/common/utils.py | |
parent | 4f6132978ad548ee1e696016d450d0b4a4cbab9f (diff) |
fix to get logfile
Change-Id: I44cc6c5108eb48191ca36cbcb44f787ea542f3ce
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'doctor_tests/common/utils.py')
-rw-r--r-- | doctor_tests/common/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doctor_tests/common/utils.py b/doctor_tests/common/utils.py index 2e823acb..d2962a8a 100644 --- a/doctor_tests/common/utils.py +++ b/doctor_tests/common/utils.py @@ -47,6 +47,11 @@ def match_rep_in_file(regex, full_path): return None +def get_doctor_test_root_dir(): + current_dir = os.path.split(os.path.realpath(__file__))[0] + return os.path.dirname(current_dir) + + class SSHClient(object): def __init__(self, ip, username, password=None, pkey=None, key_filename=None, log=None, look_for_keys=False, |