mirror of https://github.com/llvm/torch-mlir
support both option -v and TORCH_MLIR_TEST_VERBOSE (#3511)
so that we could run `python3 -m e2e_testing.main -v` to specify `verbose=True`pull/3513/head
parent
3915db0a86
commit
73ba09c587
|
@ -361,7 +361,7 @@ def run_tests(
|
|||
try:
|
||||
env_verbose = os.getenv("TORCH_MLIR_TEST_VERBOSE", "0")
|
||||
if env_verbose is not None:
|
||||
verbose = bool(int(env_verbose))
|
||||
verbose = verbose or bool(int(env_verbose))
|
||||
except ValueError as e:
|
||||
raise ValueError(
|
||||
"Bad value for TORCH_MLIR_TEST_VERBOSE env var: " "Expected integer."
|
||||
|
|
Loading…
Reference in New Issue