Skip to content

Commit

Permalink
Delete backup directory
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Feb 19, 2020
1 parent 9be5ab4 commit 554b54d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/plugin/test_output_as_buffered_backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def wait_flush(target_file)

target = "#{TMP_DIR}/backup/worker0/#{id}/#{@i.dump_unique_id_hex(chunk_id)}.log"
target_dir = File.dirname(target)
FileUtils.rm_rf(target_dir) rescue nil
assert_path_not_exist(target_dir)
wait_flush(target)

Expand All @@ -272,6 +273,7 @@ def wait_flush(target_file)

target = "#{TMP_DIR}/backup/worker0/#{id}/#{@i.dump_unique_id_hex(chunk_id)}.log"
target_dir = File.dirname(target)
FileUtils.rm_rf(target_dir) rescue nil
assert_path_not_exist(target_dir)
wait_flush(target)

Expand Down

0 comments on commit 554b54d

Please sign in to comment.