summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunal Joshi <kunal1.joshi@intel.com>2020-11-10 10:33:34 +0530
committerKunal Joshi <kunal1.joshi@intel.com>2020-12-07 15:52:00 +0530
commit02244f60c98b4e4106b1099ade3439b159ac848e (patch)
tree18f1bd005ee0af16f1397946f7b01df820f766f1
parent47f770e8e544831ae5a984b2083df73f71067762 (diff)
tests/kms_color_chamelium: time optimization
Instead of going through all the delta even if we got success with one, now breaking when we pass, thus saving some time and decreasing load on chamelium for capturing the rest of the frames. Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com>
-rw-r--r--tests/kms_color_chamelium.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/kms_color_chamelium.c b/tests/kms_color_chamelium.c
index 310c021a..43bbe1f2 100644
--- a/tests/kms_color_chamelium.c
+++ b/tests/kms_color_chamelium.c
@@ -610,9 +610,9 @@ run_tests_for_pipe(data_t *data, enum pipe p)
expected_colors[1].g =
expected_colors[2].b =
0.25 + delta * (i - 2);
- success |= test_pipe_ctm(data, primary,
- red_green_blue,
- expected_colors, ctm);
+ if(test_pipe_ctm(data, primary, red_green_blue,
+ expected_colors, ctm))
+ break;
}
igt_assert(success);
}
@@ -632,9 +632,9 @@ run_tests_for_pipe(data_t *data, enum pipe p)
expected_colors[1].g =
expected_colors[2].b =
0.5 + delta * (i - 2);
- success |= test_pipe_ctm(data, primary,
- red_green_blue,
- expected_colors, ctm);
+ if(test_pipe_ctm(data, primary, red_green_blue,
+ expected_colors, ctm))
+ break;
}
igt_assert(success);
}
@@ -654,9 +654,9 @@ run_tests_for_pipe(data_t *data, enum pipe p)
expected_colors[1].g =
expected_colors[2].b =
0.75 + delta * (i - 3);
- success |= test_pipe_ctm(data, primary,
- red_green_blue,
- expected_colors, ctm);
+ if(test_pipe_ctm(data, primary, red_green_blue,
+ expected_colors, ctm))
+ break;
}
igt_assert(success);
}