summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
authorfche <fche>2008-03-23 22:59:12 +0000
committerFrank Ch. Eigler <fche@elastic.org>2008-03-25 11:52:22 -0400
commit44169f5dbcf16072c38a762f0c352601cb2133a7 (patch)
treec135d5836dfab6167a4e074eda27aad2b450814e /testsuite/lib/systemtap.exp
parentdf3cfa3644c92994a8c21a1137d5970552aee30b (diff)
downloadsystemtap-steved-44169f5dbcf16072c38a762f0c352601cb2133a7.tar.gz
systemtap-steved-44169f5dbcf16072c38a762f0c352601cb2133a7.tar.xz
systemtap-steved-44169f5dbcf16072c38a762f0c352601cb2133a7.zip
2008-03-23 Frank Ch. Eigler <fche@elastic.org>
PR 5980. * lib/systemtap.exp: Set default Snapshot: value from "stap -V" output. (cherry picked from commit 48a00e9396a77fbf1d9919c25eeeebc0081dfb4d)
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index baed0e41..d458e98f 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -58,8 +58,9 @@ proc get_system_info {} {
} elseif [file exists $env(SRCDIR)/../SNAPSHOT] {
set Snapshot [exec /bin/cat $env(SRCDIR)/../SNAPSHOT]
} else {
- set Snapshot "unknown"
- }
+ regexp {version [^)]*} [exec stap -V 2>@ stdout] version
+ set Snapshot $version
+ }
set Distro "Linux"
if [file exists /etc/fedora-release] {set Distro [exec /bin/cat /etc/fedora-release]}
if [file exists /etc/redhat-release] {set Distro [exec /bin/cat /etc/redhat-release]}