86
87
88
89
90
91
92
93
94
95
96
97
98
|
# File 'snapshot/lib/snapshot/test_command_generator_base.rb', line 86
def resolve_result_bundle_path(language, locale)
Snapshot.cache[:result_bundle_path] = {}
language_key = locale || language
unless Snapshot.cache[:result_bundle_path][language_key]
path = File.join(Snapshot.config[:output_directory], "test_output", language_key, Snapshot.config[:scheme]) + ".test_result"
if File.directory?(path)
FileUtils.remove_dir(path)
end
Snapshot.cache[:result_bundle_path][language_key] = path
end
return Snapshot.cache[:result_bundle_path][language_key]
end
|