summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-10 11:17:03 -0400
committerDave Brolley <brolley@redhat.com>2009-07-10 11:17:03 -0400
commit5739030625d3f1697c264e3d8f04e932d1e0773d (patch)
tree0ed2d10376f2bf9bb009e31357d7913277d29bfc /testsuite/lib/systemtap.exp
parentbdf70a5d466fa9c1559a93ab71603981f1c0d753 (diff)
parent1e9ab8199dff90c1b6e7290f0f7b4eb424a9ff9f (diff)
downloadsystemtap-steved-5739030625d3f1697c264e3d8f04e932d1e0773d.tar.gz
systemtap-steved-5739030625d3f1697c264e3d8f04e932d1e0773d.tar.xz
systemtap-steved-5739030625d3f1697c264e3d8f04e932d1e0773d.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp11
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index e04fe837..76fd57bd 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -53,7 +53,7 @@ proc print_systemtap_version {} {
proc setup_systemtap_environment {} {
- global srcdir env
+ global srcdir env server_pid net_path
# need an absolute SRCDIR for the top-level src/ tree
# XXX: or, we could change nearby uses of ${SRCDIR}/testsuite to ${SRCDIR}
@@ -68,6 +68,8 @@ proc setup_systemtap_environment {} {
set env(SYSTEMTAP_DIR) [exec pwd]/.systemtap-[exec whoami]
# Find or start a systemtap server, if requested.
+ set net_path ""
+ set server_pid 0
if {[use_server_p]} then {
if {! [setup_server]} then {
return 0
@@ -151,6 +153,7 @@ proc shutdown_server {} {
if { $server_pid != 0 } then {
print "Stopping the systemtap server with PID==$server_pid"
exec stap-stop-server $server_pid
+ set server_pid 0
}
# Remove the temporary stap script
@@ -198,11 +201,9 @@ get_system_info
proc systemtap_init {args} {}
proc systemtap_version {} {}
-proc systemtap_exit {} {
+proc cleanup {} {
# Stop the stap server, if we started it.
- if {[use_server_p]} then {
- shutdown_server
- }
+ shutdown_server
}