Skip to contentSkip to conversation

tests: Dont fail cls-testbed.t if tests/cls dir is empty

PATCH In review Vadim Kochan 1 participant 2 messages Sep 29, 2014 – Oct 2, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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?).

---
 testsuite/tests/cls-testbed.t | 5 +++++
 1 file changed, 5 insertions(+)
testsuite/tests/cls-testbed.t +5 -0
index efae2a5..be32d79 100755
@@ -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
#1 lore raw

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?).

---
 testsuite/tests/cls-testbed.t | 5 +++++
 1 file changed, 5 insertions(+)
testsuite/tests/cls-testbed.t +5 -1
index efae2a5..be32d79 100755
@@ -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