Skip to content

Remote test execution fails with 'TERM not set' on cloud VMs #409

Description

@sayalibhavsar

Problem

The ansible shell task in ansible_roles/roles/test_generic/tasks/main.yml that executes tests does not set the TERM environment variable. Cloud VMs have bare environments without TERM, causing commands that depend on terminal capabilities to fail.

Impact

Test execution fails on cloud VMs with "TERM not set" errors.

Location

ansible_roles/roles/test_generic/tasks/main.yml — the "execute the test" shell task.

Suggested fix

Prepend TERM=xterm to the shell command:

shell: "TERM=xterm /tmp/{{ test_data.test_name }}.cmd"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions