Centos-kernel-stream-9/tools/testing/selftests/tc-testing/creating-testcases
Davide Caratti 9356d2bf52 selftests: tc-testing: add "depends_on" property to skip tests
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2183450
Upstream Status: net-next.git commit 7f3f86402609

commit 7f3f86402609315d6b98f6c76713e07b5a9562aa
Author: Davide Caratti <dcaratti@redhat.com>
Date:   Wed Mar 29 11:54:53 2023 +0200

    selftests: tc-testing: add "depends_on" property to skip tests

    currently, users can skip individual test cases by means of writing

      "skip": "yes"

    in the scenario file. Extend this functionality, introducing 'dependsOn':
    it's optional property like "skip", but the value contains a command (for
    example, a probe on iproute2 to check if it supports a specific feature).
    If such property is present, tdc executes that command and skips the test
    when the return value is non-zero.

    Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
    Signed-off-by: Davide Caratti <dcaratti@redhat.com>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
2023-03-31 10:16:06 +02:00
..
AddingTestCases.txt selftests: tc-testing: add "depends_on" property to skip tests 2023-03-31 10:16:06 +02:00
example.json
scapy-example.json
template.json