On 18.5.2017 18:27, Stephen Warren wrote:
> On 05/18/2017 01:23 AM, Michal Simek wrote:
>> Some tests depends on echo command to be present.
>> diff --git a/test/py/tests/test_hush_if_test.py
>> @pytest.mark.parametrize('expr,result', subtests)
>> def test_hush_if_test(u_boot_console, expr, result):
>> """Test a single "if test" condition."""
> This change is technically correct I admit.
> However, there's not much point allowing test_hush_if_test_setup() and
> test_hush_if_test_teardown() to run if test_hush_if_test() doesn't run,
> so I'd be inclined to make this a file-level mark rather than a
> function-/test-level mark, just like the other mark for the dependency
> on CONFIG_HUSH_PARSER.
> Still, either way is OK I guess.
I choose this way because in future someone can add more tests for hush
which won't use echo. And still that two tests which runs are doing
something what can failed that's why not run them.
Anyway not a problem to mark the whole file too if syntax enables it.
U-Boot mailing list