84019

Passing params to V93K test_suites.add method

Question:

This is in reference to this <a href="https://stackoverflow.com/questions/46125450/origen-problems-with-flow-branching-using-test-ids" rel="nofollow">question</a>. I checked our test interface and we are only passing the V93k primary params to the test_suites.add method.

<pre class="lang-rb prettyprint-override"> V93K_PRIMARIES = [:lev_equ_set, :lev_spec_set, :timset, :tim_equ_set, :tim_spec_set, :seqlbl, :levset] primary_tm_params = {}.tap do |primary_hash| V93K_PRIMARIES.each do |param| primary_hash[param] = tm_params.delete(param) unless tm_params[param].nil? end end # Create the test suite t = test_suites.add(test_name, primary_tm_params) t.test_method = test_methods.amd93k.send(options[:tm].to_sym, tm_params) V93K_PRIMARIES.each do |primary| t.send("#{primary}=", primary_tm_params[primary]) unless primary_tm_params[primary].nil? end # Insert the test into the flow test(t, tm_params)

When I set a breakpoint, I do see they were missing. Here they are after updating the code:

<pre class="lang-rb prettyprint-override"> :ip=>:L2, :testmode=>:speed, :cond=>:pmax, :if_failed=>:cpu_pmin, :testtype=>:cpu, :test_ip=>:bist, :tm=>"Bist"}

And here is the .tf file generated from the original two tests in the original question:

run_and_branch(cpu_L2_speed_pmin_965EA18) then { } else { @CPU_PMIN_965EA18_FAILED = 1; } if @CPU_PMIN_965EA18_FAILED == 1 then { run(cpu_L2_speed_pmax_965EA18); } else { }

I think we have it figured out, thx very much!

Answer1:

The normal approach to this is just to pass everything to flow.test, rather than a subset of the options passed from the flow.

It will only act on the options it recognizes, which are basically the flow control parameters (:id, :if_failed, :unless_enabled, etc) and the test and bin number parameters, and it will just ignore the rest.

Recommend

  • Asynchronous request on bootstrap AngularJS uib-typeahead
  • Access outer method from inside class
  • CMake testing a library, header location issue
  • Sybase ASE 15.5 : a successful insert which has no effect
  • Testing polymer 1.0 components with iron-ajax using wct
  • How to export Selenium Test Suite/Case as C#
  • How to use CKFetchNotificationChangesOperation?
  • Why the query doesn't return results when the ancestor is not provided?
  • Passing argument within action selection in UIButton
  • Memory leak when filtering with Core image
  • How to Navigate from Initial UIViewController to UISplitViewController in Swift
  • string.find failed on Chinese character in Android but success on PC when developing cocos-lua game
  • NSOpenPanel's setDirectoryURL doesn't work on Lion
  • RDF - Distributing rdf:type to all items in the list
  • Eclipse: missing requirement E4 RCP patch when installing properties editor
  • Multiple storyboards: should I use a singleton pattern to cache them?
  • Add log separators to all fixtures in unittests
  • “[CALayer release]: message sent to deallocated instance” when dismissing modal view controller
  • OSStatus error -50 (invalid parameters) AudioQueueNewInput recording audio on iOS
  • Why can't I extract data from media file using AVURLAsset in a Playground?
  • iOS 9 custom transition - animationControllerForDismissedController not called
  • UIScrollView setContentOffset: animated: not working
  • Why does Apple use assign rather than weak to store a delegate?
  • Avoid Inheriting Super Class Tests in ScalaTest
  • Should a web service response include empty values?
  • Passing “get” parameters doesn't work, parameter not visible in the link
  • How to access profile picture with Facebook API in Swift 3?
  • UIAlertController button function not working
  • How to remove a SwiftyJSON element?
  • Declaring variable dynamically in VB.net
  • Row Count Is Returning the incorrect number using RaptureXML
  • Obtain ObjectIdHex value from mgo query
  • Submit form in a displaytag pagination
  • Adding custom controls to a full screen movie
  • Comma separated Values
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • how does django model after text[] in postgresql [duplicate]
  • Bitwise OR returns boolean when one of operands is nil