summaryrefslogtreecommitdiff
path: root/test/test-main.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-10-15 09:31:50 -0600
committerTom Rini <trini@konsulko.com>2024-10-15 11:38:44 -0600
commita198e8bb6cb74672a11f6b02bc583efa873ba4bf (patch)
tree641c334bf728cb2331fa8eaef000ec951e6baf67 /test/test-main.c
parent4378732d5658accd07d2fb245417262a23f578ce (diff)
parent3f6a0c890b9121f8517784bc288922a1269ceb94 (diff)
Merge patch series "test: Minor fixes to test.py"
Simon Glass <sjg@chromium.org> says: This series collects together the patches from the Labgrid series which are not related to Labgrid, or at least can be applied independently of using Labgrid to run the lab. Link: https://lore.kernel.org/r/20241010002907.19383-1-sjg@chromium.org
Diffstat (limited to 'test/test-main.c')
-rw-r--r--test/test-main.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/test-main.c b/test/test-main.c
index 479dbb33b72..4daca81111d 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -486,7 +486,7 @@ static int ut_run_test(struct unit_test_state *uts, struct unit_test *test,
static int ut_run_test_live_flat(struct unit_test_state *uts,
struct unit_test *test)
{
- int runs;
+ int runs, ret;
if ((test->flags & UTF_OTHER_FDT) && !IS_ENABLED(CONFIG_SANDBOX))
return skip_test(uts);
@@ -496,8 +496,11 @@ static int ut_run_test_live_flat(struct unit_test_state *uts,
if (CONFIG_IS_ENABLED(OF_LIVE)) {
if (!(test->flags & UTF_FLAT_TREE)) {
uts->of_live = true;
- ut_assertok(ut_run_test(uts, test, test->name));
- runs++;
+ ret = ut_run_test(uts, test, test->name);
+ if (ret != -EAGAIN) {
+ ut_assertok(ret);
+ runs++;
+ }
}
}
@@ -521,8 +524,11 @@ static int ut_run_test_live_flat(struct unit_test_state *uts,
(!runs || ut_test_run_on_flattree(test)) &&
!(gd->flags & GD_FLG_FDT_CHANGED)) {
uts->of_live = false;
- ut_assertok(ut_run_test(uts, test, test->name));
- runs++;
+ ret = ut_run_test(uts, test, test->name);
+ if (ret != -EAGAIN) {
+ ut_assertok(ret);
+ runs++;
+ }
}
return 0;