Skip to content

[BUG]: TSP devices don't check for a write_termination character when loading a script #500

@bishhc

Description

@bishhc

Description of the bug

As a general rule, TSP devices have a max write of 1000 characters before a write_termination must exist. In order to execute a command above that max you need to use a script. load_script() currently attempts to write the script body in a single write but does not check if there is a write_termination character before the max write character limit is exceeded.

Steps To Reproduce

dut.write("loadscript overrun \nprint("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567")\nendscript")

Environment Information

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TSPTest Script ProcessingbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions