test-bot: fix path in cleanup_before

We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
This commit is contained in:
Xu Cheng 2016-04-03 12:42:44 +08:00
parent df5bd0b796
commit 232eccc428

View File

@ -640,7 +640,7 @@ module Homebrew
git "reset", "--hard" git "reset", "--hard"
git "checkout", "-f", "master" git "checkout", "-f", "master"
git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock" pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock"
Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock } Dir.glob(pr_locks) { |lock| FileUtils.rm_rf lock }
end end