Update test scripts were limited because they performed a single action
on the entire file and if that action was controlled by arguments, like
the one introduced in D68819, there was no record of it.
This patch introduces the capability of changing the arguments passed to
the script "on-the-fly" while processing a test file. In addition, an
"on/off" switch was added so that processing can be disabled for parts
of the file where the content is simply copied. The last extension is a
record of the invocation arguments in the auto generated NOTE. These
arguments are also picked up in a subsequent invocation, allowing
updates with special options enabled without user interaction.
To change the arguments the string UTC_ARGS: has to be present in a
line, followed by "additional command line arguments". That is
everything that follows UTC_ARGS: will be added to a growing list
of "command line arguments" which is reparsed after every update.
I think you need a r for the second string as well since otherwise newer python will complain that \s is not a valid escape sequence.