scripts: test.py/bench.py: Added -e/--exec shortform flag

Why not, -e/--exec seems useful/general purpose enough to deserve a
shortform flag. Especially since much of our testing involves emulation.

The only risk of conflicts is with -e/--error-* in other scripts, but
the _whole point_ of test.py is to error on failure, so I don't think
this will be an issue.

Note that -E may be more useful for environment variables in the future.

I feel like -e/--exec was more common in other programs, but I've only
found sed -e and perl -e so far. Most programs stick to -c/--command
(bash, python) which would conflict with -c/--compile here.
This commit is contained in:
Christopher Haster
2025-03-31 16:21:05 -05:00
parent 59251a755c
commit 1ac3aae92b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1696,7 +1696,7 @@ if __name__ == "__main__":
help="Path to the gdb executable, may include flags. "
"Defaults to %r." % GDB_PATH)
test_parser.add_argument(
'--exec',
'-e', '--exec',
type=lambda e: e.split(),
help="Run under another executable.")
test_parser.add_argument(