Skip to content

Commit

Permalink
TFGnot relative pwd (Fix bug) (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
seankingyang authored Aug 23, 2024
1 parent f091a94 commit 0c7b8f7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Tools/PC/testflinger_yaml_generator/testflinger_yaml_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def test_cmd_setting(self, manifest_json_path="./template/manifest.json",


def parse_input_arg():
script_dir = os.path.dirname(os.path.abspath(__file__))
parser = argparse.ArgumentParser(
description='Testflinger yaml file genertor',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Expand Down Expand Up @@ -340,11 +341,13 @@ def parse_input_arg():
default="CE-QA-PC_Test",
help="Set the session description")
opt_launcher.add_argument("--manifestJson", type=str,
default="./template/manifest.json",
default=f"{script_dir}/template/manifest.json",
help="Set the manifest json file to build \
the launcher.")
opt_launcher.add_argument("--LauncherTemplate", type=str,
default="./template/launcher_config/",
default=(
f"{script_dir}/template/launcher_config/"
),
help="Set the launcher template folder")
opt_tfyaml = parser.add_argument_group("Testflinger yaml options")
opt_tfyaml.add_argument("--LpID", type=str, default="",
Expand All @@ -353,13 +356,15 @@ def parse_input_arg():
opt_tfyaml.add_argument("--reserveTime", type=int, default=1200,
help="Set the timeout (sec) for reserve.")
opt_tfyaml.add_argument("--TFYamlTemplate", type=str,
default="./template/template.yaml",
default=f"{script_dir}/template/template.yaml",
help="Set the testflinger template yaml file")

opt_shell = parser.add_argument_group("Test command in testflinger yaml")
opt_shell.add_argument("--binFolder", type=str,
default="./template/shell_scripts/",
help="Set the testflinger test command folder")
opt_shell.add_argument(
"--binFolder", type=str,
default=f"{script_dir}/template/shell_scripts/",
help="Set the testflinger test command folder",
)

args = parser.parse_args()
return args
Expand Down

0 comments on commit 0c7b8f7

Please sign in to comment.