From a4286d3842f77499ed6c0a98fd322e502b2ad54f Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 21 Apr 2022 10:03:40 -0400 Subject: [PATCH] testsuite: make systemtap_version {} work again A dejagnu tradition is to emit the tool-path and version string at the very end of a run. --- testsuite/lib/systemtap.exp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 0276fde0d..103b99f3b 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -760,7 +760,12 @@ proc systemtap_finish {args} { } } -proc systemtap_version {} {} +proc systemtap_version {} { + set location [exec /usr/bin/which stap] + regexp {version [^)]*} [exec stap -V 2>@ stdout] version + + clone_output "$location $version" +} proc stap_run_batch {filename args} { if {[string length $filename]} { -- 2.43.5