Skip to content

Commit

Permalink
Ensure creating workdir before chdir. Should fix errors on Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Nov 25, 2015
1 parent 426846a commit a725071
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/builder_spec.rb
Expand Up @@ -452,7 +452,8 @@ def checkProductXml
def common_run_init
@savedDir = Dir.pwd
cleanup_directories_before_run
Dir.chdir Oddb2xml::WorkDir
FileUtils.makedirs(Oddb2xml::WorkDir)
Dir.chdir(Oddb2xml::WorkDir)
VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
end

Expand Down
2 changes: 1 addition & 1 deletion spec/calc_spec.rb
Expand Up @@ -617,7 +617,7 @@ def url
@savedDir = Dir.pwd
cleanup_directories_before_run
FileUtils.makedirs(Oddb2xml::WorkDir)
Dir.chdir Oddb2xml::WorkDir
Dir.chdir(Oddb2xml::WorkDir)
VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
@run_time_options = '--calc --skip-download'
@options = Oddb2xml::Options.new
Expand Down
1 change: 1 addition & 0 deletions spec/cli_spec.rb
Expand Up @@ -37,6 +37,7 @@
VCR.insert_cassette('oddb2xml')
@savedDir = Dir.pwd
cleanup_directories_before_run
FileUtils.makedirs(Oddb2xml::WorkDir)
Dir.chdir(Oddb2xml::WorkDir)
end
after(:all) do
Expand Down
1 change: 1 addition & 0 deletions spec/downloader_spec.rb
Expand Up @@ -73,6 +73,7 @@ def filter_aips_xml(filename='AipsDownload_ng.xml', ids_to_keep = [55558, 61848]
def common_before
@savedDir = Dir.pwd
cleanup_directories_before_run
FileUtils.makedirs(Oddb2xml::WorkDir)
Dir.chdir(Oddb2xml::WorkDir)
end

Expand Down
1 change: 1 addition & 0 deletions spec/extractor_spec.rb
Expand Up @@ -8,6 +8,7 @@

def common_before
@savedDir = Dir.pwd
FileUtils.makedirs(Oddb2xml::WorkDir)
Dir.chdir(Oddb2xml::WorkDir)
VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
end
Expand Down

0 comments on commit a725071

Please sign in to comment.