Two small fixes to shell integration points.

1. Fixing bug where environment variable was being ignored.
2. Adding "UNITY_DIR" to allow a path to unity specified by the environment.
This commit is contained in:
Dixon
2016-05-03 21:48:48 -07:00
parent caba771da1
commit a18e537b37
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ raise "Header file to mock must be specified!" unless ARGV.length >= 1
mock_out = ENV.fetch('MOCK_OUT', './build/test/mocks')
mock_prefix = ENV.fetch('MOCK_PREFIX', 'mock_')
cmock = CMock.new(plugins: [:ignore, :return_thru_ptr], mock_prefix: 'mock_', mock_path: mock_out)
cmock = CMock.new(plugins: [:ignore, :return_thru_ptr], mock_prefix: mock_prefix, mock_path: mock_out)
cmock.setup_mocks(ARGV[0])