Class: OrigenTesters::ATP::Processors::AddSetResult

Inherits:
OrigenTesters::ATP::Processor show all
Defined in:
lib/origen_testers/atp/processors/add_set_result.rb

Overview

Makes sure every test node has an on_fail/set_result node,

Instance Method Summary collapse

Methods inherited from OrigenTesters::ATP::Processor

#clean_flag, #extract_volatiles, #handler_missing, #process, #process_all, #volatile?, #volatile_flags

Instance Method Details

#on_on_fail(node) ⇒ Object



14
15
16
17
18
19
# File 'lib/origen_testers/atp/processors/add_set_result.rb', line 14

def on_on_fail(node)
  unless node.find(:continue)
    node = node.ensure_node_present(:set_result, 'fail')
  end
  node.updated(nil, process_all(node))
end

#on_test(node) ⇒ Object



9
10
11
12
# File 'lib/origen_testers/atp/processors/add_set_result.rb', line 9

def on_test(node)
  node = node.ensure_node_present(:on_fail)
  node.updated(nil, process_all(node))
end

#run(node) ⇒ Object



5
6
7
# File 'lib/origen_testers/atp/processors/add_set_result.rb', line 5

def run(node)
  process(node)
end