mirror of https://github.com/llvm/torch-mlir
Remove spammy warnings and filecheck info in run_tests.
* This suppresses a warning that arises from using "-m" to launch a module contained in a package that arranges modules via __init__.py. It seems irrelevant to the use case of running doctests.pull/1/head
parent
6b7c913e0b
commit
644d9fb0d3
|
@ -41,10 +41,7 @@ def end_filecheck_test(main_file):
|
|||
filecheck_binary = "FileCheck"
|
||||
if _filecheck_binary_var in os.environ:
|
||||
filecheck_binary = os.environ[_filecheck_binary_var]
|
||||
print("Using FileCheck binary", filecheck_binary,
|
||||
"(customize by setting", _filecheck_binary_var, ")", file=sys.stderr)
|
||||
filecheck_args = [filecheck_binary, main_file, "--dump-input=fail"]
|
||||
print("LAUNCHING FILECHECK:", filecheck_args, file=sys.stderr)
|
||||
p = subprocess.Popen(filecheck_args, stdin=subprocess.PIPE)
|
||||
p.communicate(filecheck_input.encode("UTF-8"))
|
||||
sys.exit(p.returncode)
|
||||
|
|
|
@ -39,7 +39,7 @@ failed = []
|
|||
for test_module in TEST_MODULES:
|
||||
print("--------====== RUNNING %s ======--------" % test_module)
|
||||
try:
|
||||
subprocess.check_call([sys.executable, "-m", test_module],
|
||||
subprocess.check_call([sys.executable, "-Wignore", "-m", test_module],
|
||||
env=CHILD_ENVIRON)
|
||||
print("--------====== DONE %s ======--------\n" % test_module)
|
||||
passed.append(test_module)
|
||||
|
|
Loading…
Reference in New Issue