Commit 8d391512 authored by vadimk's avatar vadimk Committed by Stephen Hemminger

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: default avatarVadim Kochan <vadim4j@gmail.com>
parent a5eafa9a
......@@ -21,6 +21,11 @@ ts_err_cat()
ts_cat "$@" | tee >> $ERRF
}
ts_skip()
{
exit 127
}
ts_tc()
{
SCRIPT=$1; shift
......
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment