origen_testers 0.44.1 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 5570c122126cc062e8f46ce806820ccb02891fbd16dcdeb3908586f20b3e75a5
4
- data.tar.gz: '09bed68fe617bbf693e79e269781c4f14a2121d012884d18f63b48a8b1d44dfd'
2
+ SHA1:
3
+ metadata.gz: 8b44759a776d8a921046c939da268fd8c71b167b
4
+ data.tar.gz: 7176f9ed7292135db6aeeed62509ef0963157b25
5
5
  SHA512:
6
- metadata.gz: 14736c1c2e952c605c6734ae79fb9bd2cb1f6f77af3a8c5ad649ee2c7960ca935241daff5a6ae4063513b4ccd568264f45dffada48ddfd1dd824266bb82b52da
7
- data.tar.gz: 0bc129d5b5c948d6ac716e31c464dd22d95cca3b5d39140ae62af97d7143642c195dce2f15ff9beb2ec5fb118fc1bc6b13d834d18f4b7168a73b290661584643
6
+ metadata.gz: e9ebfe0cf112a2373511c6e5964955a9c8279554bf2b66d1873b6dd4e87119cfeca81c3f6287b594d5e8de96fa386ae4d4e59cb81fd9d87fb03196d9503d2d53
7
+ data.tar.gz: 70db80333244e5d1245efc9c5d84666e2c20cd80aa5a5cc8664804441187428a3113f811b2f9bfb1266a16b669ebac64b86bba048cf546d40095e6c2b26c6d55
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenTesters
2
2
  MAJOR = 0
3
- MINOR = 44
4
- BUGFIX = 1
3
+ MINOR = 45
4
+ BUGFIX = 0
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -28,6 +28,10 @@ module OrigenTesters
28
28
  @comment_stack ||= []
29
29
  end
30
30
 
31
+ def self.name_stack
32
+ @name_stack ||= []
33
+ end
34
+
31
35
  def self.flow_comments
32
36
  @flow_comments
33
37
  end
@@ -255,6 +255,9 @@ module OrigenTesters
255
255
 
256
256
  # Import sub-program
257
257
  def import(file, options = {})
258
+ options = {
259
+ name: nil
260
+ }.merge(options)
258
261
  file = Pathname.new(file).absolute? ? file : "#{current_dir}/#{file}"
259
262
  file = Origen.file_handler.add_rb_to(file) # add .rb to filename if missing
260
263
  orig_file = "#{file}" # capture original filename possibly without pre-pended underscore
@@ -271,6 +274,8 @@ module OrigenTesters
271
274
  end
272
275
  end
273
276
 
277
+ OrigenTesters::Flow.name_stack << options[:name]
278
+
274
279
  base_collection = collection
275
280
  @collection = []
276
281
  Origen.generator.option_pipeline << options
@@ -12,7 +12,8 @@ module Origen
12
12
  # of the ATP AST originated from
13
13
  def create(options = {}, &block)
14
14
  options = {
15
- reload_target: true
15
+ reload_target: true,
16
+ name: OrigenTesters::Flow.name_stack.pop
16
17
  }.merge(options)
17
18
  # Patch for Windows operation since the path can start with something like "C:/"
18
19
  if caller[0] =~ /(:(\/|\\))/
@@ -467,7 +467,7 @@ Flow.create interface: 'OrigenTesters::Test::Interface', flow_name: "Flow Contro
467
467
  log 'Test of a real life case which was found to have problems'
468
468
  unless_enable "eword1" do
469
469
  unless_enable "eword2" do
470
- import 'components/small', number: 53000
470
+ import 'components/small', number: 53000, name: 'user_specified_sub_flow_name'
471
471
  end
472
472
  if_enable "eword2" do
473
473
  import 'components/small', number: 54000
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_testers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.1
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -546,7 +546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
546
546
  version: '0'
547
547
  requirements: []
548
548
  rubyforge_project:
549
- rubygems_version: 2.7.7
549
+ rubygems_version: 2.6.12
550
550
  signing_key:
551
551
  specification_version: 4
552
552
  summary: This plugin provides Origen tester models to drive ATE type testers like