Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Error decoding plan output if TF_LOG is used #86

@dcopestake

Description

@dcopestake

I started encountering the error:

tftest.TerraformTestError: Error decoding plan output: Extra data: line 1 column 5 (char 4)

After some further inspection it turns out this is because I have TF_LOG set to INFO and the additional information output to stdout is throwing off TerraformPlanOutput as it's obviously not JSON.

I guess an easy fix might be to just unset the TF_LOG variable entirely for terraform runs executed by tftest?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions