summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-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"