origen 0.60.8 → 0.60.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/application/lsf.rb +3 -3
- data/lib/origen/commands/lint.rb +6 -1
- data/origen_site_config.yml +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c442b0ec278b734ebc49f7222d453db157c28797e2a6df6134d3b1433a562e37
|
4
|
+
data.tar.gz: 7492e627ed33bfcbbcdac8ecb57c765428b9fdb5ba4ce896f2d0dcb61fa64dd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7488cc0aac95c1ead5a2c20d806e895e424fdf76621c713620e745c25817bd74265e54184cdf9577871f320a9abd6cb08a57fa57ddf5d275a6f4a8213b4a6a
|
7
|
+
data.tar.gz: 996a85f149c8f7843db5b5b00f95723802a2d929e85302a51ba2711bdaf58ec5527aec7712d8499623c969013a288f19d748acc91e3aad6f43937073ec9d9873
|
data/config/version.rb
CHANGED
@@ -150,11 +150,11 @@ module Origen
|
|
150
150
|
i = 0
|
151
151
|
`bjobs 2>&1`.split("\n").each do |line|
|
152
152
|
if line =~ /^(\d+).*(RUN|PEND)/
|
153
|
-
if
|
153
|
+
if config.queue_count_only && config.queue
|
154
154
|
# only count jobs for current queue, helpful for when
|
155
155
|
# you have a service account user that runs lsf for a
|
156
156
|
# lot of jobs in addition to origen jobs
|
157
|
-
if line =~ /#{
|
157
|
+
if line =~ /#{config.queue}/
|
158
158
|
i += 1
|
159
159
|
end
|
160
160
|
else
|
@@ -171,7 +171,7 @@ module Origen
|
|
171
171
|
def limit_job_submissions
|
172
172
|
@local_job_count ||= 0
|
173
173
|
if @local_job_count == 100
|
174
|
-
while remote_jobs_count >
|
174
|
+
while remote_jobs_count > config.max_jobs
|
175
175
|
puts 'Waiting for submitted jobs count to fall below limit...'
|
176
176
|
sleep 5
|
177
177
|
end
|
data/lib/origen/commands/lint.rb
CHANGED
@@ -18,9 +18,11 @@ http://origen.freescale.net/origen/latest/guides/utilities/lint/
|
|
18
18
|
END
|
19
19
|
opts.on('-c', '--correct', 'Correct errors automatically where possible') { options[:correct] = true }
|
20
20
|
opts.on('-n', '--no-correct', "Don't correct errors automatically (override if the app default is set to auto correct)") { options[:no_correct] = true }
|
21
|
+
opts.on('-A', '--auto-correct-all', 'Autocorrect offenses (safe and unsafe)') { options[:correct_all] = true }
|
21
22
|
opts.on('-e', '--easy', 'Be less strict, most checks run with this flag enabled can be corrected automatically') { options[:easy] = true }
|
22
23
|
opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
|
23
24
|
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
|
25
|
+
opts.on('-o', '--override-config CONFIG', String, 'Path to a rubocop rules yml file to use instead of the default rules') { |file| options[:override_config] = file }
|
24
26
|
# Apply any application option extensions to the OptionParser
|
25
27
|
Origen::CommandHelpers.extend_options(opts, app_options, options)
|
26
28
|
opts.separator ''
|
@@ -48,11 +50,14 @@ if options[:easy] || Origen.config.lint_test[:level] == :easy
|
|
48
50
|
else
|
49
51
|
config = "#{Origen.top}/config/rubocop/strict.yml"
|
50
52
|
end
|
53
|
+
config = options[:override_config] || config
|
51
54
|
|
52
55
|
command = "rubocop #{files} --config #{config} --display-cop-names"
|
53
56
|
|
54
57
|
unless options[:no_correct]
|
55
|
-
if options[:
|
58
|
+
if options[:correct_all] || Origen.config.lint_test[:auto_correct_all]
|
59
|
+
command += ' --auto-correct-all'
|
60
|
+
elsif options[:correct] || Origen.config.lint_test[:auto_correct]
|
56
61
|
command += ' --auto-correct'
|
57
62
|
end
|
58
63
|
end
|
data/origen_site_config.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.60.
|
4
|
+
version: 0.60.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|