raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=44387a580310d4e5acdd89a1a4ae3b2cb29f83ac
commit 44387a580310d4e5acdd89a1a4ae3b2cb29f83ac Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Sat Mar 10 22:47:12 2018 +0900 elm test - adapt to argc/v being regular argv 0 being binary name --- src/bin/elementary/test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c index 8685e1bce5..9862d1d906 100644 --- a/src/bin/elementary/test.c +++ b/src/bin/elementary/test.c @@ -1297,7 +1297,7 @@ efl_main(void *data EINA_UNUSED, /* if called with a single argument try to autorun a test with * the same name as the given param * ex: elementary_test "Box Vert 2" */ - if (eina_array_count(arge->argv) == 1) + if (eina_array_count(arge->argv) == 2) { if (!strcmp(eina_array_data_get(arge->argv, 0), "--help")) { @@ -1312,15 +1312,15 @@ efl_main(void *data EINA_UNUSED, } autorun = eina_array_data_get(arge->argv, 0); } - else if (eina_array_count(arge->argv) == 2) + else if (eina_array_count(arge->argv) == 3) { /* Just a workaround to make the shot module more * useful with elementary test. */ - if ((!strcmp(eina_array_data_get(arge->argv, 0), "--test-win-only")) || - (!strcmp(eina_array_data_get(arge->argv, 0), "-to"))) + if ((!strcmp(eina_array_data_get(arge->argv, 1), "--test-win-only")) || + (!strcmp(eina_array_data_get(arge->argv, 1), "-to"))) { test_win_only = EINA_TRUE; - autorun = eina_array_data_get(arge->argv, 1); + autorun = eina_array_data_get(arge->argv, 2); } } --