You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Tests in the root of the workspace are broken in Bazel 0.12.0 #5079
In the root of the workspace, with Bazel 0.12.0, run:
bazel clean; bazel test :sh_test --test_output=errors
Actual:
==================== Test output for //:sh_test:
external/bazel_tools/tools/test/test-setup.sh: line 231: : command not found
================================================================================
Expected: Test should pass.
What operating system are you running Bazel on?
Windows Server 2016
What's the output of bazel info release?
release 0.12.0
If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.
N/A
What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?
N/A
Have you found anything relevant by searching the web?
No.
Any other information, logs, or outputs that you want to share?
This is broken because for a test in the root of the workspace, Bazel is looking in the runfiles manifest for:
__main__/./sh_test.exe
(Note the "/./" in the middle! That's the problem.)
But the manifest has an entry that looks like this:
Activity
jasharpe commentedon Apr 23, 2018
@laszlocsomor @meteorcloudy FYI
jasharpe commentedon Apr 23, 2018
BTW this is broken in the same way at HEAD.
jasharpe commentedon Apr 23, 2018
Confirmed that this is not broken on Bazel 0.11.1. The exact same test command passes.
laszlocsomor commentedon Apr 24, 2018
@jasharpe , thanks for a detailed bug report! I'll take a look.
laszlocsomor commentedon Apr 24, 2018
Culprit is eb067ea.
laszlocsomor commentedon Apr 24, 2018
This is blocking #4583
test-setup: remove leading "./" from test name
test-setup: remove leading "./" from test name
test-setup: remove leading "./" from test name
laszlocsomor commentedon Apr 24, 2018
We'll cherry-pick a fix into 0.13.0 . Closing this issue.
test-setup: remove leading "./" from test name
test-setup: remove leading "./" from test name
test-setup: remove leading "./" from test name