From 5ccae5495728321f4fcb22353cefe42204f3250b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sat, 12 Jan 2008 22:05:47 -0500 Subject: add git commit id as testsuite Snapshot field 2008-01-12 Frank Ch. Eigler * 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 * lib/systemtap.exp (get_system_info): Look for $builddir/SNAPSHOT too. --- testsuite/lib/systemtap.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuite/lib') 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" -- cgit