summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-04-24 15:22:58 +0300
committerPetri Latvala <petri.latvala@intel.com>2018-04-24 15:22:58 +0300
commit005442122734b11b009d0c6d0cf6c438adbe8dfc (patch)
tree998e0177507cc3d368936054ee246559940b731e
parent449b3741b3b16a321c139db114ba7552011b5ffd (diff)
warn results now needs >2 lines
-rw-r--r--runner/resultgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runner/resultgen.c b/runner/resultgen.c
index a7684333..ec1108ca 100644
--- a/runner/resultgen.c
+++ b/runner/resultgen.c
@@ -268,7 +268,7 @@ static bool fill_from_output(int fd, char *binary, bool is_stdout,
json_object_object_add(current_test, is_stdout ? "out" : "err",
json_object_new_string_len(buf, statbuf.st_size));
- if (!is_stdout && count_lines(buf, buf + statbuf.st_size) > 1) {
+ if (!is_stdout && count_lines(buf, buf + statbuf.st_size) > 2) {
add_or_override_result(current_test, "pass", "warn");
}
if (igt_version) {
@@ -398,7 +398,7 @@ static bool fill_from_output(int fd, char *binary, bool is_stdout,
json_object_new_string_len(igt_version,
igt_version_len));
}
- } else if (count_lines(startline, end) > 1) {
+ } else if (count_lines(startline, end) > 2) {
add_or_override_result(current_test, "pass", "warn");
}
}