From 7dcabcbedab65c098c7e73cf56fc34649c40d183 Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Tue, 3 Oct 2023 09:40:17 -0700 Subject: [PATCH] lint! --- runners/s3-benchrunner-c/scripts/build.py | 2 +- runners/s3-benchrunner-cli/scripts/build.py | 4 ++-- runners/s3-benchrunner-crt-java/scripts/build.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runners/s3-benchrunner-c/scripts/build.py b/runners/s3-benchrunner-c/scripts/build.py index b3aac21c..676b5b7c 100755 --- a/runners/s3-benchrunner-c/scripts/build.py +++ b/runners/s3-benchrunner-c/scripts/build.py @@ -43,7 +43,7 @@ def fetch_dep(work_dir: Path, dep_name: str, branch: str) -> Path: dep_dir = work_dir.joinpath(dep_name) root = Path(__file__).parent.parent.parent.parent - run([sys.executable, root.joinpath('scripts/fetch-git-repo.py'), + run([sys.executable, str(root.joinpath('scripts/fetch-git-repo.py')), '--repo', f'https://github.com/awslabs/{dep_name}.git', '--preferred-branch', branch, '--dir', str(dep_dir)]) diff --git a/runners/s3-benchrunner-cli/scripts/build.py b/runners/s3-benchrunner-cli/scripts/build.py index 761c65fd..1a7b2446 100755 --- a/runners/s3-benchrunner-cli/scripts/build.py +++ b/runners/s3-benchrunner-cli/scripts/build.py @@ -24,7 +24,7 @@ def run(cmd_args: list[str]): def fetch_git_repo(url: str, dir: Path, main_branch: str, preferred_branch: Optional[str]): # use helper script root = Path(__file__).parent.parent.parent.parent - fetch_cmd = [sys.executable, root.joinpath('scripts/fetch-git-repo.py'), + fetch_cmd = [sys.executable, str(root.joinpath('scripts/fetch-git-repo.py')), '--repo', url, '--main-branch', main_branch, '--dir', str(dir)] @@ -90,5 +90,5 @@ def build_crt(work_dir: Path, branch: Optional[str], venv_python: str): # finally, print command for executing the runner, using the virtual environment print("------ RUNNER_CMD ------") - runner_cmd = [venv_python, runner_dir.joinpath('benchrunner.py')] + runner_cmd = [venv_python, str(runner_dir.joinpath('benchrunner.py'))] print(subprocess.list2cmdline(runner_cmd)) diff --git a/runners/s3-benchrunner-crt-java/scripts/build.py b/runners/s3-benchrunner-crt-java/scripts/build.py index 570524b3..a39bbb9a 100755 --- a/runners/s3-benchrunner-crt-java/scripts/build.py +++ b/runners/s3-benchrunner-crt-java/scripts/build.py @@ -27,7 +27,7 @@ def build_aws_crt_java(work_dir: Path, branch: str): awscrt_src = work_dir.joinpath('aws-crt-java') root = Path(__file__).parent.parent.parent.parent - run([sys.executable, root.joinpath('scripts/fetch-git-repo.py'), + run([sys.executable, str(root.joinpath('scripts/fetch-git-repo.py')), '--repo', 'https://github.com/awslabs/aws-crt-java.git', '--preferred-branch', branch, '--dir', str(awscrt_src)])