File tree Expand file tree Collapse file tree 2 files changed +30
-4
lines changed
tests/bootstrap_impls/bin_calls_bin Expand file tree Collapse file tree 2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
3- source " $( dirname " $0 " ) /verify.sh"
4- verify_output " $( dirname " $0 " ) /outer_calls_inner_script_python.out"
3+
4+ # rules_python_get_runfiles_path is a helper to correctly look up runfiles.
5+ # It is needed because on Windows, the path to a runfile can be absolute,
6+ # which is not something that bash can handle. So we use cygpath to fix it up.
7+ rules_python_get_runfiles_path () {
8+ local path=" $1 "
9+ if [[ -f /bin/cygpath ]]; then
10+ cygpath -u " ${path} "
11+ else
12+ echo " ${path} "
13+ fi
14+ }
15+
16+ source " $( rules_python_get_runfiles_path " $( dirname " $0 " ) /verify.sh" ) "
17+ verify_output " $( rules_python_get_runfiles_path " $( dirname " $0 " ) /outer_calls_inner_script_python.out" ) "
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
3- source " $( dirname " $0 " ) /verify.sh"
4- verify_output " $( dirname " $0 " ) /outer_calls_inner_system_python.out"
3+
4+ # rules_python_get_runfiles_path is a helper to correctly look up runfiles.
5+ # It is needed because on Windows, the path to a runfile can be absolute,
6+ # which is not something that bash can handle. So we use cygpath to fix it up.
7+ rules_python_get_runfiles_path () {
8+ local path=" $1 "
9+ if [[ -f /bin/cygpath ]]; then
10+ cygpath -u " ${path} "
11+ else
12+ echo " ${path} "
13+ fi
14+ }
15+
16+ source " $( rules_python_get_runfiles_path " $( dirname " $0 " ) /verify.sh" ) "
17+ verify_output " $( rules_python_get_runfiles_path " $( dirname " $0 " ) /outer_calls_inner_system_python.out" ) "
You can’t perform that action at this time.
0 commit comments