From 7f7720519a6848403d91cc90269a04bade0dac2e Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 13 Aug 2008 11:53:36 -0400 Subject: Minor bugs in stap-client. --- testsuite/ChangeLog | 6 ++++++ testsuite/lib/systemtap.exp | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'testsuite') diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 405dd754..ed11d429 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-08-13 Dave Brolley + + * lib/systemtap.exp (setup_systemtap_environment): client_path is now + global. + (systemtap_exit): Remove the directory named by $client_path. + 2008-08-11 Frank Ch. Eigler * systemtap.base/vars.exp: Adjust to loss of "\n" at end of $$vars 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 } } -- cgit