summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-01-12 22:05:47 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-01-12 22:05:47 -0500
commit5ccae5495728321f4fcb22353cefe42204f3250b (patch)
tree3bcd6c1795aa85422da2c1ff864c398b62e422c6 /testsuite/lib
parent794dacb8ae89cfb594112d08aa3ce5789599fa5f (diff)
downloadsystemtap-steved-5ccae5495728321f4fcb22353cefe42204f3250b.tar.gz
systemtap-steved-5ccae5495728321f4fcb22353cefe42204f3250b.tar.xz
systemtap-steved-5ccae5495728321f4fcb22353cefe42204f3250b.zip
add git commit id as testsuite Snapshot field
2008-01-12 Frank Ch. Eigler <fche@elastic.org> * configure.ac: Generate a build tree SNAPSHOT file from git-rev-list, if we suspect the source tree came from git. * configure: Regenerated. 2008-01-12 Frank Ch. Eigler <fche@elastic.org> * lib/systemtap.exp (get_system_info): Look for $builddir/SNAPSHOT too.
Diffstat (limited to 'testsuite/lib')
-rw-r--r--testsuite/lib/systemtap.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 3b66b05a..f677da41 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -53,7 +53,9 @@ proc get_system_info {} {
global Host Snapshot Distro env
set Host [exec /bin/uname -a]
- if [file exists $env(SRCDIR)/../SNAPSHOT] {
+ if [file exists ../SNAPSHOT] {
+ set Snapshot [exec /bin/cat ../SNAPSHOT]
+ } elseif [file exists $env(SRCDIR)/../SNAPSHOT] {
set Snapshot [exec /bin/cat $env(SRCDIR)/../SNAPSHOT]
} else {
set Snapshot "unknown"