New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regrtest ambiguous -S flag #57935
Comments
./python -m test --help -S is used to continue running tests after an aborted run. It will opts, args = getopt.getopt(sys.argv[1:], '...S...', for o, a in opts:
elif o in ('-S', '--start'):
start = a
elif o in ('-S', '--slow'):
print_slow = True At the moment -S (no args) and --slow (no args) are the same, not what the documentation says and not how the code executes (-S goes with --start). Help says nothing about --start. --slow or --start needs a new short opt, and corrected documentation. |
New changeset 4fc5dfad766a by Senthil Kumaran in branch '3.2': New changeset 9a0efac5bbcb by Senthil Kumaran in branch '3.2': |
I add -o as a short form for --slow. regrtest was using getopt and this conflicting option was not caught. I see it is a bug than a feature so the change is made in 3.2 and 3.3 Thanks for catching this bug, Erno Tukia. |
--start requires an argument but short opt -S does not. opts, args = getopt.getopt(sys.argv[1:], '...S...', Patch included. |
New changeset c4919642fd25 by Senthil Kumaran in branch '3.2': New changeset 347f6305bd26 by Senthil Kumaran in branch 'default': |
Fixed now. Thanks! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: