From 05de43cb8395b523d59de27dd964c6abe26e41e3 Mon Sep 17 00:00:00 2001 From: fche Date: Sun, 13 Jan 2008 03:06:33 +0000 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/systemtap.exp') 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