diff options
author | fche <fche> | 2008-01-13 03:06:33 +0000 |
---|---|---|
committer | fche <fche> | 2008-01-13 03:06:33 +0000 |
commit | 05de43cb8395b523d59de27dd964c6abe26e41e3 (patch) | |
tree | 3bcd6c1795aa85422da2c1ff864c398b62e422c6 /testsuite/lib | |
parent | dc241cba4d146835d7bdc3c32133aad27cdfc8e4 (diff) | |
download | systemtap-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.exp | 4 |
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" |