Skip to content

Commit

Permalink
Debug failing Windows test.
Browse files Browse the repository at this point in the history
  • Loading branch information
katzdm committed Jan 8, 2019
1 parent 6207235 commit 9ecec27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def GetWindowsPathWithUNCPrefix(path):
return path

# os.path.abspath returns a normalized absolute path
return unicode_prefix + os.path.abspath(path)
abspath = os.path.abspath(path)
return unicode_prefix + (abspath[1:] if abspath.startswith('\\') else abspath)

def HasWindowsExecutableExtension(path):
return path.endswith('.exe') or path.endswith('.com') or path.endswith('.bat')
Expand Down
3 changes: 3 additions & 0 deletions src/test/shell/bazel/bazel_rules_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ def Fib(n):
EOF

cat > module2/bez.py <<EOF
import sys
raise Exception("PACKAGE PATH: %s", sys.path)
from remote.module_a import foo
from remote.module_b import bar
from module1 import fib
Expand Down

0 comments on commit 9ecec27

Please sign in to comment.