]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tests: Skip cls-testbed.t if tests/cls dir does not exist
authorvadimk <vadim4j@gmail.com>
Thu, 9 Oct 2014 15:51:24 +0000 (18:51 +0300)
committerStephen Hemminger <shemming@brocade.com>
Thu, 30 Oct 2014 05:26:57 +0000 (22:26 -0700)
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>
testsuite/lib/generic.sh
testsuite/tests/cls-testbed.t

index cc4894705bbc2e065fad6be2ff53109ec859fcc0..8f76e492d4a80d7ddfb4611ef25c9e68a769c93c 100644 (file)
@@ -21,6 +21,11 @@ ts_err_cat()
        ts_cat "$@" | tee >> $ERRF
 }
 
+ts_skip()
+{
+    exit 127
+}
+
 ts_tc()
 {
        SCRIPT=$1; shift
index efae2a5d863c93b912c4a73776ee5038b55980f7..f5f997942838fdac019524d74e0749b53f0ffe41 100755 (executable)
@@ -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"