summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib')
-rw-r--r--testsuite/lib/systemtap.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 2c46e30f..34ac3b04 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -134,10 +134,13 @@ proc setup_server {} {
# Server management scripts and data are installed if this is an
# install test, otherwise there is some setup to do.
+ # Make sure the server management scripts and tools are on the $PATH.
if {! [installtest_p]} then {
- # Make sure the server management scripts and tools are on the $PATH.
set env(PATH) "$srcdir/..:[exec pwd]/..:$env(PATH)"
set env(SYSTEMTAP_SERVER_SCRIPTS) "$srcdir/.."
+ } else {
+ set env(PATH) "$env(PKGLIBDIR):$env(PATH)"
+ set env(SYSTEMTAP_SERVER_SCRIPTS) env(PKGLIBDIR)
}
# Try to find or start the server.