]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
tcl: improve test execution loop
authorRoss Burton <ross.burton@arm.com>
Tue, 13 Jan 2026 18:39:59 +0000 (18:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Jan 2026 17:34:55 +0000 (17:34 +0000)
There's no need to run tests/all.tcl if we're going to immediately tell
it to run just one test file. Instead just run the test file directly.

This reduces a lot of noise from the log output.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/tcltk/tcl/run-ptest

index c8acb4846f2888808376c9b6b1a1598dd1e8c315..46a1967defe2829908394245b86d6d2335069c81 100644 (file)
@@ -24,12 +24,11 @@ SKIP="$SKIP http11-\*"
 # tries to access google.com
 SKIP="$SKIP httpProxy-\*"
 
-for i in tests/*.test; do
-    i=$(basename $i)
-    ./tcltest tests/all.tcl -file $i -skip "$SKIP"
+for name in tests/*.test; do
+    ./tcltest $name -skip "$SKIP"
     if [ $? -eq 0 ]; then
-        echo "PASS: $i"
+        echo "PASS: $name"
     else
-        echo "FAIL: $i"
+        echo "FAIL: $name"
     fi
 done