Pass -v when invoking FileCheck.

FileCheck has learned to output the debugging information we were printing, plus other info.  See https://reviews.llvm.org/rL349418.

PiperOrigin-RevId: 226941909
This commit is contained in:
Justin Lebar 2018-12-26 12:13:35 -08:00 committed by TensorFlower Gardener
parent 79126ece73
commit 48f2893491

View File

@ -48,7 +48,7 @@ StatusOr<bool> RunFileCheck(const string& input, const string& pattern) {
tensorflow::SubProcess file_check_process; tensorflow::SubProcess file_check_process;
file_check_process.SetProgram(file_check_path, file_check_process.SetProgram(file_check_path,
{file_check_path, pattern_path}); {file_check_path, "-v", pattern_path});
file_check_process.SetChannelAction(tensorflow::CHAN_STDIN, file_check_process.SetChannelAction(tensorflow::CHAN_STDIN,
tensorflow::ACTION_PIPE); tensorflow::ACTION_PIPE);
file_check_process.SetChannelAction(tensorflow::CHAN_STDERR, file_check_process.SetChannelAction(tensorflow::CHAN_STDERR,
@ -71,9 +71,7 @@ StatusOr<bool> RunFileCheck(const string& input, const string& pattern) {
LOG(WARNING) << "NOTE: FileCheck binary does not exist!"; LOG(WARNING) << "NOTE: FileCheck binary does not exist!";
} }
LOG(WARNING) << "FileCheck error: " << standard_error; LOG(WARNING) << "FileCheck error:\n" << standard_error;
LOG(WARNING) << "FileCheck input was:";
XLA_LOG_LINES(tensorflow::WARNING, input);
LOG(WARNING) << "FileCheck pattern was:"; LOG(WARNING) << "FileCheck pattern was:";
XLA_LOG_LINES(tensorflow::WARNING, pattern); XLA_LOG_LINES(tensorflow::WARNING, pattern);
} else if (!standard_error.empty()) { } else if (!standard_error.empty()) {