Skip to contentSkip to conversation

tools/genhtml.pl: Add deprecated warning

PATCH In review Petr Vorel 3 participants 5 messages Sep 3, 2024

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/2 tools/genhtml.pl: Add deprecated warning

Script will be removed. People which want to have statistics should use LTP runner kirk.

---
 tools/genhtml.pl | 5 +++++
 1 file changed, 5 insertions(+)
tools/genhtml.pl +5 -0
index 5a9256500e..79c178d014 100644
@@ -87,6 +87,11 @@ sub get_background_colour_column() {
     }
 }
 
+print STDERR "-------------------------------------------------\n";
+print STDERR "INFO: genhtml.pl script is deprecated, try kirk\n";
+print STDERR "(new LTP runner which also generates JSON output)\n";
+print STDERR "https://github.com/linux-test-project/kirk\n";
+print STDERR "-------------------------------------------------\n";
 
 if ($start_tag eq "" || $end_tag eq "" || $output_tag eq "" || $execution_tag eq "") {
 	syntax();
Signature · 5 lines
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#1 lore raw

PATCH 2/2 runltp: Print deprecated warnings to STDERR

Probably more change people will notice

---
 runltp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
runltp +4 -4
index 4b0bd08f15..0d90625691 100755
@@ -70,10 +70,10 @@
 
 deprecated()
 {
-    echo "-------------------------------------------"
-    echo "INFO: runltp script is deprecated, try kirk"
-    echo "https://github.com/linux-test-project/kirk"
-    echo "-------------------------------------------"
+    echo "-------------------------------------------" >&2
+    echo "INFO: runltp script is deprecated, try kirk" >&2
+    echo "https://github.com/linux-test-project/kirk" >&2
+    echo "-------------------------------------------" >&2
 }
 
 
Signature · 5 lines
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 2/2
#2 lore raw

Re: [LTP] [PATCH 2/2] runltp: Print deprecated warnings to STDERR

Hi Petr,

for both.

Thank you,
Avinesh

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#4 lore raw

Hi all,

thanks, merged!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp