From ad56234c55d37338518883817f9c48f02784ab73 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Fri, 20 Oct 2023 02:00:30 -0700 Subject: [PATCH 1/2] Test the Python code formatter GitHub check --- libcxx/utils/adb_run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcxx/utils/adb_run.py b/libcxx/utils/adb_run.py index b54198fed44a4..779a82de081fd 100755 --- a/libcxx/utils/adb_run.py +++ b/libcxx/utils/adb_run.py @@ -96,7 +96,9 @@ def run_command(args: argparse.Namespace) -> int: remote_dir = f"{REMOTE_BASE_DIR}/run-{local_dir_hash}/{os.path.basename(local_dir)}" sync_test_dir(local_dir, remote_dir) - adb_shell_command = ( + adb_shell_command = \ + ( + # Set the environment early so that PATH can be overridden. Overriding # PATH is useful for: # - Replacing older shell utilities with toybox (e.g. on old devices). From 8f0db8eeb656c6e9067e6417f3382a2f3625e014 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Fri, 20 Oct 2023 02:05:48 -0700 Subject: [PATCH 2/2] Fix darker error --- libcxx/utils/adb_run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libcxx/utils/adb_run.py b/libcxx/utils/adb_run.py index 779a82de081fd..97028f9801811 100755 --- a/libcxx/utils/adb_run.py +++ b/libcxx/utils/adb_run.py @@ -96,9 +96,8 @@ def run_command(args: argparse.Namespace) -> int: remote_dir = f"{REMOTE_BASE_DIR}/run-{local_dir_hash}/{os.path.basename(local_dir)}" sync_test_dir(local_dir, remote_dir) - adb_shell_command = \ - ( - + adb_shell_command = ( + # Add another comment... # Set the environment early so that PATH can be overridden. Overriding # PATH is useful for: # - Replacing older shell utilities with toybox (e.g. on old devices).