Commit f7343296 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Replace any tmpdir in the integration specs

parent c252fa6e
...@@ -48,6 +48,7 @@ require 'pretty_bacon' ...@@ -48,6 +48,7 @@ require 'pretty_bacon'
require 'colored' require 'colored'
require 'clintegracon' require 'clintegracon'
require 'integration/xcodeproj_project_yaml' require 'integration/xcodeproj_project_yaml'
require 'tmpdir'
CLIntegracon.configure do |c| CLIntegracon.configure do |c|
c.spec_path = ROOT + 'spec/cocoapods-integration-specs' c.spec_path = ROOT + 'spec/cocoapods-integration-specs'
...@@ -110,6 +111,7 @@ describe_cli 'pod' do ...@@ -110,6 +111,7 @@ describe_cli 'pod' do
s.replace_path `which git`.chomp, 'GIT_BIN' s.replace_path `which git`.chomp, 'GIT_BIN'
s.replace_path `which hg`.chomp, 'HG_BIN' if has_mercurial s.replace_path `which hg`.chomp, 'HG_BIN' if has_mercurial
s.replace_user_path 'Library/Caches/CocoaPods', 'CACHES_DIR' s.replace_user_path 'Library/Caches/CocoaPods', 'CACHES_DIR'
s.replace_pattern %r{#{Dir.tmpdir}/[a-zA-Z0-9-]+}, 'TMPDIR'
s.replace_pattern /\d{4}-\d\d-\d\d \d\d:\d\d:\d\d [-+]\d{4}/, '<#DATE#>' s.replace_pattern /\d{4}-\d\d-\d\d \d\d:\d\d:\d\d [-+]\d{4}/, '<#DATE#>'
s.replace_pattern /\(Took \d+.\d+ seconds\)/, '(Took <#DURATION#> seconds)' s.replace_pattern /\(Took \d+.\d+ seconds\)/, '(Took <#DURATION#> seconds)'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment