elm test - unbreak elm test ...

7ebcb710d2 / D6668 breaks elm test. a
fix actually that breaks it even more. before only --help didn't
work... now -to/--test-win-only is broken which is the actually useful
option... :)
This commit is contained in:
Carsten Haitzler 2018-07-24 13:18:35 +09:00
parent 18cccd8798
commit 9f9cd4c200
1 changed files with 3 additions and 3 deletions

View File

@ -1333,11 +1333,11 @@ efl_main(void *data EINA_UNUSED,
{
/* Just a workaround to make the shot module more
* useful with elementary test. */
if ((!strcmp(eina_array_data_get(arge->argv, 2), "--test-win-only")) ||
(!strcmp(eina_array_data_get(arge->argv, 2), "-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, 3);
autorun = eina_array_data_get(arge->argv, 2);
}
}