diff options
author | Dave Brolley <brolley@redhat.com> | 2008-08-13 11:53:36 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2008-08-13 11:53:36 -0400 |
commit | 7f7720519a6848403d91cc90269a04bade0dac2e (patch) | |
tree | 1ad37fabf7a43d685f529d238720d79c99a6d47c /testsuite/lib/systemtap.exp | |
parent | 6503a1cce1cb2a2b88819b414650bd85340a4381 (diff) | |
download | systemtap-steved-7f7720519a6848403d91cc90269a04bade0dac2e.tar.gz systemtap-steved-7f7720519a6848403d91cc90269a04bade0dac2e.tar.xz systemtap-steved-7f7720519a6848403d91cc90269a04bade0dac2e.zip |
Minor bugs in stap-client.
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r-- | testsuite/lib/systemtap.exp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 8b533303..28129f0a 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -37,7 +37,7 @@ proc print_systemtap_version {} { proc setup_systemtap_environment {} { - global srcdir prefix env server_pid + global srcdir prefix env server_pid client_path # need an absolute SRCDIR for the top-level src/ tree # XXX: or, we could change nearby uses of ${SRCDIR}/testsuite to ${SRCDIR} @@ -121,7 +121,7 @@ proc systemtap_init {args} {} proc systemtap_version {} {} proc systemtap_exit {} { - global server_pid + global server_pid client_path # Stop the stap server, if we started it. if {[use_server_p]} then { @@ -129,6 +129,9 @@ proc systemtap_exit {} { print "Stopping the systemtap server with PID==$server_pid" exec stap-stop-server $server_pid } + + # Remove the temporary stap script + exec /bin/rm -fr $client_path } } |