config/application.rb in origen_testers-0.9.1 vs config/application.rb in origen_testers-0.9.2
- old
+ new
@@ -28,23 +28,25 @@
# This will be the default setting in Origen v3.
config.strict_errors = true
config.semantically_version = true
+ # to handle for web compile where environment/tester not yet defined
+
# By default all generated output will end up in ./output.
# Here you can specify an alternative directory entirely, or make it dynamic such that
# the output ends up in a setup specific directory.
config.output_directory do
- dir = "#{Origen.root}/output/#{$tester.name}"
+ dir = "#{Origen.root}/output/#{$tester.nil? ? '': $tester.name}"
# Check if running on windows, if so, substitute :: with _
dir.gsub!("::","_") if Origen.os.windows?
dir
end
# Similary for the reference files, generally you want to setup the reference directory
# structure to mirror that of your output directory structure.
config.reference_directory do
- dir = "#{Origen.root}/.ref/#{$tester.name}"
+ dir = "#{Origen.root}/.ref/#{$tester.nil? ? '': $tester.name}"
# Check if running on windows, if so, substitute :: with _
dir.gsub!("::","_") if Origen.os.windows?
dir
end