prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add support for running bwctest.sh
  
  
  </issue>
  <code>
  [start of bundle-workflow/src/paths/tree_walker.py]
  1 # SPDX-License-Identifier: Apache-2.0
  2 #
  3 # The OpenSearch Contributors require contributions made to
  4 # this file be licensed under the Apache-2.0 license or a
  5 # compatible open source license.
  6 
  7 import os
  8 
  9 
  10 def walk(root):
  11     print(f'Walking tree from {root}')
  12     for dir, dirs, files in os.walk(root):
  13         for file_name in files:
  14             absolute_path = os.path.join(dir, file_name)
  15             relative_path = os.path.relpath(absolute_path, root)
  16             yield (os.path.realpath(absolute_path), relative_path)
  17
  [end of bundle-workflow/src/paths/tree_walker.py]
  [start of bundle-workflow/src/system/execute.py]
  1 # SPDX-License-Identifier: Apache-2.0
  2 #
  3 # The OpenSearch Contributors require contributions made to
  4 # this file be licensed under the Apache-2.0 license or a
  5 # compatible open source license.
  6 
  7 import subprocess
  8 
  9 
  10 def execute(command, dir, capture=True, raise_on_failure=True):
  11     """
  12     Execute a shell command inside a directory.
  13     :param command: The shell command to execute.
  14     :param dir: The full path to the directory that the command should be executed in.
  15     :returns a tuple containing the exit code, stdout, and stderr.
  16     """
  17     print(f'Executing "{command}" in {dir}')
  18     result = subprocess.run(command, cwd=dir, shell=True, capture_output=capture, text=True)
  19     if raise_on_failure:
  20         result.check_returncode()
  21     return (result.returncode, result.stdout, result.stderr)
  22
  [end of bundle-workflow/src/system/execute.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/bundle-workflow/src/paths/tree_walker.py b/bundle-workflow/src/paths/tree_walker.py
  --- a/bundle-workflow/src/paths/tree_walker.py
  +++ b/bundle-workflow/src/paths/tree_walker.py
  @@ -8,7 +8,7 @@
   
   
   def walk(root):
  -    print(f'Walking tree from {root}')
  +    print(f"Walking tree from {root}")
       for dir, dirs, files in os.walk(root):
           for file_name in files:
               absolute_path = os.path.join(dir, file_name)
  diff --git a/bundle-workflow/src/system/execute.py b/bundle-workflow/src/system/execute.py
  --- a/bundle-workflow/src/system/execute.py
  +++ b/bundle-workflow/src/system/execute.py
  @@ -15,7 +15,9 @@
       :returns a tuple containing the exit code, stdout, and stderr.
       """
       print(f'Executing "{command}" in {dir}')
  -    result = subprocess.run(command, cwd=dir, shell=True, capture_output=capture, text=True)
  +    result = subprocess.run(
  +        command, cwd=dir, shell=True, capture_output=capture, text=True
  +    )
       if raise_on_failure:
           result.check_returncode()
       return (result.returncode, result.stdout, result.stderr)
  
verification_info: {"golden_diff": "diff --git a/bundle-workflow/src/paths/tree_walker.py b/bundle-workflow/src/paths/tree_walker.py\n--- a/bundle-workflow/src/paths/tree_walker.py\n+++ b/bundle-workflow/src/paths/tree_walker.py\n@@ -8,7 +8,7 @@\n \n \n def walk(root):\n-    print(f'Walking tree from {root}')\n+    print(f\"Walking tree from {root}\")\n     for dir, dirs, files in os.walk(root):\n         for file_name in files:\n             absolute_path = os.path.join(dir, file_name)\ndiff --git a/bundle-workflow/src/system/execute.py b/bundle-workflow/src/system/execute.py\n--- a/bundle-workflow/src/system/execute.py\n+++ b/bundle-workflow/src/system/execute.py\n@@ -15,7 +15,9 @@\n     :returns a tuple containing the exit code, stdout, and stderr.\n     \"\"\"\n     print(f'Executing \"{command}\" in {dir}')\n-    result = subprocess.run(command, cwd=dir, shell=True, capture_output=capture, text=True)\n+    result = subprocess.run(\n+        command, cwd=dir, shell=True, capture_output=capture, text=True\n+    )\n     if raise_on_failure:\n         result.check_returncode()\n     return (result.returncode, result.stdout, result.stderr)\n", "issue": "Add support for running bwctest.sh\n\n", "before_files": [{"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\ndef walk(root):\n    print(f'Walking tree from {root}')\n    for dir, dirs, files in os.walk(root):\n        for file_name in files:\n            absolute_path = os.path.join(dir, file_name)\n            relative_path = os.path.relpath(absolute_path, root)\n            yield (os.path.realpath(absolute_path), relative_path)\n", "path": "bundle-workflow/src/paths/tree_walker.py"}, {"content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport subprocess\n\n\ndef execute(command, dir, capture=True, raise_on_failure=True):\n    \"\"\"\n    Execute a shell command inside a directory.\n    :param command: The shell command to execute.\n    :param dir: The full path to the directory that the command should be executed in.\n    :returns a tuple containing the exit code, stdout, and stderr.\n    \"\"\"\n    print(f'Executing \"{command}\" in {dir}')\n    result = subprocess.run(command, cwd=dir, shell=True, capture_output=capture, text=True)\n    if raise_on_failure:\n        result.check_returncode()\n    return (result.returncode, result.stdout, result.stderr)\n", "path": "bundle-workflow/src/system/execute.py"}]}