Megatest

View Ticket
Login
2024-03-25
11:23 New ticket [dd54f4b87b] new command cat <path> {alternate}, conditional cat if file exists. artifact: e57669bf74 user: mmgraham

Ticket Hash: dd54f4b87b4f717a0c60ab807f3f0ff167c89510
Title: new command [cat <path> {alternate}], conditional cat if file exists
Status: Open Type: Feature_Request
Severity: Important Priority:
Subsystem: Resolution:
Last Modified: 2024-03-25 11:23:22
Version Found In: 1.80/29
Description:
Applies to: megatest config, runconfig, testconfig

Description:

Checks for existence of file.

If file exists, cat it.

If file does not exist, and optional text defined display optional text

If file does not exist, and optional text not specified, print an error that the file does not exist.

Syntax:

[cat <path>]

[cat <path> "text if file does not exist"]

Example:

[items]

VAR1 [cat /path/to/somefile]

VAR2 [cat /path/to/someother ""]