Enable or Disable Lua Scripts During Testing
Lua scripts run by CFS can read a global Lua variable, is_test.
- When a script runs as part of an
Ingestaction, this variable isfalse. - When a script runs as part of an
IngestTestaction, this variable istrue.
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