diff mbox series

[1/2] tcl: improve test execution loop

Message ID 20260113184000.3938096-1-ross.burton@arm.com
State New
Headers show
Series [1/2] tcl: improve test execution loop | expand

Commit Message

Ross Burton Jan. 13, 2026, 6:39 p.m. UTC
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>
---
 meta/recipes-devtools/tcltk/tcl/run-ptest | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest
index c8acb4846f..46a1967def 100644
--- a/meta/recipes-devtools/tcltk/tcl/run-ptest
+++ b/meta/recipes-devtools/tcltk/tcl/run-ptest
@@ -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