X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=doctor_tests%2Fcommon%2Futils.py;fp=doctor_tests%2Fcommon%2Futils.py;h=d2962a8a4ccd7bafda392cd0f8e0e63128928ab0;hb=2c9569e66c4f0e333d603f93b280768bea4f2d07;hp=2e823acba12ab96f4b3eade4e993639f889a1b25;hpb=5733b9ce1dcfb40e0ef6a956c0e6c092829fc6d6;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,