summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
authorfche <fche>2008-03-23 22:59:12 +0000
committerfche <fche>2008-03-23 22:59:12 +0000
commit48a00e9396a77fbf1d9919c25eeeebc0081dfb4d (patch)
tree8db630b8e148a593be73ede1218e6c15159666cd /testsuite/lib/systemtap.exp
parentef56478712cf797380b3057ddeca13dcec064656 (diff)
downloadsystemtap-steved-48a00e9396a77fbf1d9919c25eeeebc0081dfb4d.tar.gz
systemtap-steved-48a00e9396a77fbf1d9919c25eeeebc0081dfb4d.tar.xz
systemtap-steved-48a00e9396a77fbf1d9919c25eeeebc0081dfb4d.zip
2008-03-23 Frank Ch. Eigler <fche@elastic.org>
PR 5980. * lib/systemtap.exp: Set default Snapshot: value from "stap -V" output.
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]}