Open topic with navigation

# 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 `Ingest` action, this variable is `false`.
- When a script runs as part of an `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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm