tests: Dont fail cls-testbed.t if tests/cls dir is empty
Subsystems (2)
PATCH 1/1 tests: Dont fail cls-testbed.t if tests/cls dir is empty
Curently tests/cls-testbed.t tries to run any *.t in tests/cls/ folder but such folder does not exist.
The better solution can be like having a generic mechanism which allows to SKIP some tests (by return code?).
Signed-off-by Vadim Kochan <[email protected]>
--- testsuite/tests/cls-testbed.t | 5 +++++ 1 file changed, 5 insertions(+)
testsuite/tests/cls-testbed.t +5 -0
@@ -5,6 +5,11 @@ source lib/generic.sh QDISCS="cbq htb dsmark" +if [ ! -d tests/cls ]; then + ts_log "tests/cls folder is empty" + exit 0 +fi + for q in ${QDISCS}; do ts_log "Preparing classifier testbed with qdisc $q"
Signature · 1 line
2.1.0
Hi,
Please ignore this patch, I will send modified one with another sibject.
Quoted 30 lines · Vadim Kochan
Curently tests/cls-testbed.t tries to run any *.t in tests/cls/ folder but such folder does not exist.
The better solution can be like having a generic mechanism which allows to SKIP some tests (by return code?).
Signed-off-by Vadim Kochan <[email protected]>--- testsuite/tests/cls-testbed.t | 5 +++++ 1 file changed, 5 insertions(+)testsuite/tests/cls-testbed.t +5
-1@@ -5,6 +5,11 @@ source lib/generic.sh QDISCS="cbq htb dsmark" +if [ ! -d tests/cls ]; then + ts_log "tests/cls folder is empty" + exit 0 +fi + for q in ${QDISCS}; do ts_log "Preparing classifier testbed with qdisc $q" --2.1.0