origen_testers 0.5.3 → 0.5.4
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d35bd38567c40187d2a40d73d3caf1b4d62bef07
|
4
|
+
data.tar.gz: 099d4e1d9d35bf1be12e61eae7076596078ccbce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb2eaa27a1162b0be3d52bcb1da5ecdb48da88963e927dd4e8ab990e843a5d0b010b755cfabff5e677d0abc589adbeee719d267e122aa0366f7e38465d1905a
|
7
|
+
data.tar.gz: 637746af96a717e03eadb77942cd4bc7366096390502772de10925eb82ff3b91a0de0226e255fc0481651fba525db26e904d2a7a36f6077fcfba336cf0f6875e
|
data/config/version.rb
CHANGED
@@ -55,12 +55,14 @@ module OrigenTesters
|
|
55
55
|
# Add any methods
|
56
56
|
if options[:methods][:methods]
|
57
57
|
methods = options[:methods][:methods]
|
58
|
-
@finalize = methods
|
58
|
+
@finalize = methods[:finalize]
|
59
59
|
methods.each do |method_name, function|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
unless method_name == :finalize
|
61
|
+
var_name = "@#{method_name}".gsub(/=|\?/, '_')
|
62
|
+
instance_variable_set(var_name, function)
|
63
|
+
define_singleton_method method_name do |*args|
|
64
|
+
instance_variable_get(var_name).call(self, *args)
|
65
|
+
end
|
64
66
|
end
|
65
67
|
end
|
66
68
|
end
|
@@ -9,20 +9,19 @@ module OrigenTesters
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def custom(name, options = {})
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
name = "custom_#{name}".to_sym
|
13
|
+
if tester.try(:igxl_based?)
|
14
|
+
ti = test_instances.mylib.test_a(name)
|
15
|
+
ti.my_arg0 = 'arg0_set'
|
16
|
+
ti.my_arg2_alias = 'curr'
|
17
|
+
ti.set_my_arg4('arg4_set_from_method')
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
elsif tester.v93k?
|
20
|
+
ti = test_methods.my_tml.test_a
|
21
|
+
ti.my_arg0 = 'arg0_set'
|
22
|
+
ti.my_arg2_alias = 'CURR'
|
23
|
+
ti.set_my_arg4('arg4_set_from_method')
|
24
24
|
|
25
|
-
end
|
26
25
|
end
|
27
26
|
end
|
28
27
|
|
data/program/custom_tests.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|