diff options
author | Russ Allbery <rra@stanford.edu> | 2012-02-16 22:00:04 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2012-02-16 22:00:04 -0800 |
commit | 973d3d468891546e9c666b02878c1acae3903ceb (patch) | |
tree | 4145ce6d5e5356e071d027b1741f39dbf0f7ba9a /ruby | |
parent | 21f7b26ca133dc69d6281413b549d555718b0498 (diff) |
Update binding test suites to remove test tmp directory
Change-Id: Id02b8ee170911eb034ea2b4c5a659e5711dd6f66
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/test_remctl.rb.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ruby/test_remctl.rb.in b/ruby/test_remctl.rb.in index 333c133..9af0efa 100644 --- a/ruby/test_remctl.rb.in +++ b/ruby/test_remctl.rb.in @@ -46,6 +46,7 @@ module Helpers pid.chomp! Process.kill('TERM', pid.to_i) Process.waitpid(pid.to_i) + FileUtils.rm 'tmp/pid', :force => true return end end @@ -79,6 +80,11 @@ module Helpers stop_remctld FileUtils.rm 'tmp/output' FileUtils.rm 'tmp/krb5cc_test', :force => true + begin + FileUtils.rmdir 'tmp' + rescue Errno::ENOENT + nil + end end end end |