X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=doctor_tests%2Fcommon%2Futils.py;h=d2962a8a4ccd7bafda392cd0f8e0e63128928ab0;hb=b3dcaa337fa91b3123fa08e8b8dd2e81184a91dd;hp=2e823acba12ab96f4b3eade4e993639f889a1b25;hpb=4f6132978ad548ee1e696016d450d0b4a4cbab9f;p=doctor.git 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,