Lua scripts run by CFS can read a global Lua variable, is_test
.
Ingest
action, this variable is false
.IngestTest
action, this variable is true
.You can use the is_test
variable to enable or disable parts of a script. For example:
if is_test then -- The part of the script to enable for IngestTest -- (or disable for Ingest) end if not is_test then -- The part of the script to disable for IngestTest -- (or enable for Ingest) end
|