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
In both mlir and polly, tests are run with lit's internal shell by default. In order to use the external shell instead, the LIT_USE_INTERNAL_SHELL environment variable should be set to 0. The logic in the lit configs of these test suites prevents the external shell from being turned on.
Code:
use_lit_shell = True
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
if lit_shell_env:
use_lit_shell = not lit.util.pythonize_bool(lit_shell_env)
config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
The problem lies in the body of the if statement, with the use of not.
The text was updated successfully, but these errors were encountered:
In both mlir and polly, tests are run with lit's internal shell by default. In order to use the external shell instead, the `LIT_USE_INTERNAL_SHELL` environment variable should be set to 0. The logic in the lit configs of these test suites prevents the external shell from being turned on.
Code:
use_lit_shell = True
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
if lit_shell_env:
use_lit_shell = not lit.util.pythonize_bool(lit_shell_env)
config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
The problem lies in the body of the if statement, with the use of not.
…lit (#106458)
For both mlir and polly, the lit internal shell is the default shell for
running lit tests. However, if the user wanted to switch back to the
external shell by setting `LIT_USE_INTERNAL_SHELL=0`, the `not` used in
the body of the `if` conditional changes `use_lit_shell` to be True
instead of the intended False. Removing `not` allows for this lit config
to work as intended.
Fixes#106459.
In both mlir and polly, tests are run with lit's internal shell by default. In order to use the external shell instead, the
LIT_USE_INTERNAL_SHELL
environment variable should be set to 0. The logic in the lit configs of these test suites prevents the external shell from being turned on.Code:
The problem lies in the body of the if statement, with the use of
not
.The text was updated successfully, but these errors were encountered: