You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for a CLI flag to enable the behaviour described below, or
for the default behaviour of the testscript command to be updated to match this behaviour
with an optional CLI flag to opt back into the current behaviour.
Feature Request
Please consider adding a flag which causes the output from testscript in a failing context to be stable.
Rationale
Currently, both the stderr and stdout of a failing invocation include an unstable testscript[0-9]{10} path component tracking where the txtar archive was unpacked on the filesystem:
Its inclusion means that any automation that tracks/matches/enforces the output from such a failing test needs to special case recognising that path component, just in order to ignore it.
I don't believe that the significant majority of users running testscript will need to know this temporary prefix / path; and in the small minority of cases where it's important, then those situations have the -work flag available ("... prints the temporary work directory path before running each script"). I believe it would be harmless to drop the prefix when reporting an error, with an optional flag causing the command to revert to the current, unstable, output.
The text was updated successfully, but these errors were encountered:
This is a feature request either:
testscript
command to be updated to match this behaviourFeature Request
Please consider adding a flag which causes the output from
testscript
in a failing context to be stable.Rationale
Currently, both the stderr and stdout of a failing invocation include an unstable
testscript[0-9]{10}
path component tracking where the txtar archive was unpacked on the filesystem:Its inclusion means that any automation that tracks/matches/enforces the output from such a failing test needs to special case recognising that path component, just in order to ignore it.
I don't believe that the significant majority of users running
testscript
will need to know this temporary prefix / path; and in the small minority of cases where it's important, then those situations have the-work
flag available ("... prints the temporary work directory path before running each script"). I believe it would be harmless to drop the prefix when reporting an error, with an optional flag causing the command to revert to the current, unstable, output.The text was updated successfully, but these errors were encountered: