This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 689b86410d0 fix windows slashes for dask (#30528) (#35781)
689b86410d0 is described below

commit 689b86410d0e4e459435b66d3238e0e008524687
Author: Khorbaladze A. <[email protected]>
AuthorDate: Tue Aug 5 17:23:53 2025 +0400

    fix windows slashes for dask (#30528) (#35781)
    
    * fix windows slashes for dask (#30528)
    
    * upd comment (#30528)
---
 sdks/python/scripts/run_pytest.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sdks/python/scripts/run_pytest.sh 
b/sdks/python/scripts/run_pytest.sh
index 20fad40b9a2..e016907cc1a 100755
--- a/sdks/python/scripts/run_pytest.sh
+++ b/sdks/python/scripts/run_pytest.sh
@@ -25,6 +25,7 @@
 # $2 - additional arguments not parsed by tox (typically module names or
 #   '-k keyword')
 # $3 - optional arguments to pytest
+#!/bin/bash
 
 envname=${1?First argument required: suite base name}
 posargs=$2
@@ -84,6 +85,9 @@ fi
 options=""
 test_paths=""
 
+# On Windows, convert backslashes to forward slashes
+posargs=${posargs//\\//}
+
 # Safely split the posargs string into individual arguments.
 eval "set -- $posargs"
 
@@ -148,4 +152,4 @@ if [[ $status1 != 0 && $status1 != 5 ]]; then
 fi
 if [[ $status2 != 0 && $status2 != 5 ]]; then
   exit $status2
-fi
+fi
\ No newline at end of file

Reply via email to