tests: Skip cls-testbed.t if tests/cls dir does not exist

Curently tests/cls-testbed.t tries to run any *.t in
tests/cls/ folder but such folder does not exist.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
vadimk 2014-10-09 18:51:24 +03:00 committed by Stephen Hemminger
parent a5eafa9a5e
commit 8d391512b7
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,11 @@ ts_err_cat()
ts_cat "$@" | tee >> $ERRF
}
ts_skip()
{
exit 127
}
ts_tc()
{
SCRIPT=$1; shift

View File

@ -5,6 +5,11 @@ source lib/generic.sh
QDISCS="cbq htb dsmark"
if [ ! -d tests/cls ]; then
ts_log "tests/cls folder does not exist"
ts_skip
fi
for q in ${QDISCS}; do
ts_log "Preparing classifier testbed with qdisc $q"