From b3dcaa337fa91b3123fa08e8b8dd2e81184a91dd Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Mon, 9 Oct 2017 15:25:33 +0800 Subject: fix to get logfile Change-Id: I44cc6c5108eb48191ca36cbcb44f787ea542f3ce Signed-off-by: dongwenjuan --- doctor_tests/common/utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doctor_tests/common') 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, -- cgit 1.2.3-korg