summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
authorfche <fche>2008-01-13 03:06:33 +0000
committerfche <fche>2008-01-13 03:06:33 +0000
commit05de43cb8395b523d59de27dd964c6abe26e41e3 (patch)
tree3bcd6c1795aa85422da2c1ff864c398b62e422c6 /testsuite/lib
parentdc241cba4d146835d7bdc3c32133aad27cdfc8e4 (diff)
downloadsystemtap-steved-05de43cb8395b523d59de27dd964c6abe26e41e3.tar.gz
systemtap-steved-05de43cb8395b523d59de27dd964c6abe26e41e3.tar.xz
systemtap-steved-05de43cb8395b523d59de27dd964c6abe26e41e3.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"