Skip to content
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

don't allow passing of values that are look very similar to an existing option (WIP) #1423

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

boegel
Copy link
Member

@boegel boegel commented Oct 10, 2015

common_args = []

eb_go = parse_options(args=common_args + ['-r', 'f'])
self.assertFalse(eb_go.options.robot == 'f')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stdweird: for same reason, this doesn't work... -r f should be rejected by generaloption because there's an option -f, but it's not

I checked a bit, and for some reason is_value_a_commandline_option is getting () as a value passed in, rather than f which would lead to the reject

any idea? --robot/-r is a store_or_None option, could that be the reason?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test that is not store_or_none? just to make sure the vsc-base is up to date? (or is this with python setup.py test?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should be testing f in eb_go.options.robot to actually make the test fail, but fine :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stdweird: reproduced this problem with a test case for vsc-base, see hpcugent/vsc-base#200

@hpcugentbot
Copy link
Contributor

EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2165/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel boegel added this to the v2.4.0 milestone Oct 12, 2015
@hpcugentbot
Copy link
Contributor

EasyBuild framework unit test suite FAILed.

See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2184/console for more details.

Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do.

@boegel boegel changed the title don't allow passing of values that are look very similar to an existing option don't allow passing of values that are look very similar to an existing option (WIP) Oct 28, 2015
@boegel
Copy link
Member Author

boegel commented Oct 28, 2015

blocked by hpcugent/vsc-base#200

@boegel boegel modified the milestones: v2.5.0, v2.4.0 Oct 28, 2015
@boegel boegel modified the milestones: v2.5.0, v2.6.0 Dec 14, 2015
@boegel boegel modified the milestones: v2.6.0, v2.7.0 Jan 22, 2016
@boegel boegel modified the milestones: v2.x, v2.7.0 Mar 9, 2016
@akesandgren
Copy link
Contributor

@boegel relevance?

@boegel boegel modified the milestones: 3.x, 4.x Feb 20, 2020
@boegel boegel added the bug fix label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants