tools: Extract ROOT_DIR.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-06-28 14:20:13 -04:00 committed by Tim Abbott
parent acff0879e7
commit ea3478e377
1 changed files with 3 additions and 2 deletions

View File

@ -8,9 +8,10 @@ from typing import List
from zulint import lister from zulint import lister
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(os.path.dirname(TOOLS_DIR)) ROOT_DIR = os.path.dirname(TOOLS_DIR)
os.chdir(ROOT_DIR)
sys.path.append(os.path.dirname(TOOLS_DIR)) sys.path.append(ROOT_DIR)
from tools.lib.test_script import add_provision_check_override_param, assert_provisioning_status_ok from tools.lib.test_script import add_provision_check_override_param, assert_provisioning_status_ok
exclude = """ exclude = """