We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca512cc commit 243fd5dCopy full SHA for 243fd5d
tests/test-cli.cpp
@@ -42,11 +42,13 @@ struct Out {
42
static Out run(const std::string & cmd) {
43
auto full_cmd = cmd + " > out/out.txt 2> out/err.txt";
44
std::cerr << "Running: " << full_cmd << std::endl;
45
+ auto out = read("out/out.txt");
46
+ auto err = read("out/err.txt");
47
if (std::system(full_cmd.c_str()) != 0)
- throw std::runtime_error("llama-cli binary failed to run.");
48
+ throw std::runtime_error("llama-cli binary failed to run.\nstdout: " + out + "\nstderr: " + err);
49
return {
- /* .out = */ read("out/out.txt"),
- /* .err = */ read("out/err.txt"),
50
+ /* .out = */ out,
51
+ /* .err = */ err,
52
};
53
}
54
0 commit comments