Purpose
Syntax
notInLatter(arr1, arr2, in_or_not)
Input parameters
Array
arr1
copy from somewhere
Array
arr2
to somewhere else
String
in_or_out
Contains either
"in"
or
"not"
depending whether the function should return
the contents of the first array filtered to return only the contents that matched
the second array (
"in"
) or the contents that did not match the second array
(
"not"
).
Return values
Dictionary
keys
Returns the keys of the scripting dictionary object that contains the first array
filtered to have only the contents that matched the second array
(in_or_not =
"in")
or the contents that did not match the second array or
(in_or_not =
"not")
.
passOrFail()
Compares the expected and actual values of the prerequisite property and
determines whether the prerequisite property passes the check. The input
parameters can be generic numbers, size in MBs or GBs, CPU speed in MHz or
GHz, boolean, or strings.
Purpose
This function first calls the “changeMG()” on page 115 function to format and if
necessary convert the expected and actual values. It checks whether either value is
0, and if yes, it returns "FAIL" and exits. If the values are not 0, the function checks
whether the values are boolean, numeric, size in MBs or GBs, CPU speed in MHz
or GHz,, or strings. It then compares the values and returns the result.
Syntax
passOrFail(expect,real)
Input parameters
String
expect
The expected value for the prerequisite property.
String
real
The actual value for the prerequisite property.
Return values
String
passOrFail
Returns
"PASS"
or
"FAIL"
depending upon whether the expected value is equal
to or greater than the actual value.
Appendix E. Common functions for Windows systems
123
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...