diff options
author | Eric Wong <normalperson@yhbt.net> | 2015-01-22 04:08:34 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2015-01-22 04:08:34 +0000 |
commit | 9738138e9266b1c8f955bc92eabd27313a0e853f (patch) | |
tree | 9311e8b3d087c34a5883199b83ce636576e65309 /test/test_mogtool_bigfile.rb | |
parent | ea6ea79399288737ced11fe60a47a5161fc447ed (diff) | |
download | mogilefs-client-9738138e9266b1c8f955bc92eabd27313a0e853f.tar.gz |
This should prevent stray processes from being leftover after tests are run as well as cleaning up tmpdirs more thoroughly.
Diffstat (limited to 'test/test_mogtool_bigfile.rb')
-rw-r--r-- | test/test_mogtool_bigfile.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_mogtool_bigfile.rb b/test/test_mogtool_bigfile.rb index 01de78e..f5dc473 100644 --- a/test/test_mogtool_bigfile.rb +++ b/test/test_mogtool_bigfile.rb @@ -26,6 +26,8 @@ class TestMogtoolBigfile < Test::Unit::TestCase @client = MogileFS::MogileFS.new(:hosts => @trackers, :domain => @domain) end + alias teardown teardown_mogilefs + def mogtool!(*args) x!("mogtool", "--trackers=#{@trackers.join(',')}", "--domain=#@domain", *args) |