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

test/parallel: add a test for negative jobs number arguments #693

Merged
merged 2 commits into from
Mar 4, 2023

Conversation

marc-hb
Copy link
Contributor

@marc-hb marc-hb commented Jan 24, 2023

Before commit 48b0d26, -j2 and -j -2 both triggered an infinite loop. That commit fixed the infinite loop but -j2 and -j -2 are still parsed the same. In the corresponding code review #657 Martin expressed an intent to change the parser and parse these differently in the future.

In commit 0ec3619 Martin added a "no infinite loop" test for "-j2". However this test will stop testing negative arguments when the parser changes (the test will also have to be adjusted when the parser changes).

Add one additional test with a "-j -3" argument that will test a negative argument forever.

Signed-off-by: Marc Herbert marc.herbert@intel.com

@marc-hb marc-hb marked this pull request as ready for review January 24, 2023 20:20
@marc-hb marc-hb requested a review from a team as a code owner January 24, 2023 20:20
@martin-schulze-vireso martin-schulze-vireso added this to the 1.10.0 milestone Feb 12, 2023
marc-hb and others added 2 commits March 4, 2023 21:59
Before commit 48b0d26, -j2 and -j -2 both triggered an infinite
loop. That commit fixed the infinite loop but -j2 and -j -2 are still
parsed the same. In the corresponding code review bats-core#657 Martin expressed
an intent to change the parser and parse these differently in the
future.

In commit 0ec3619 Martin added a "no infinite loop" test for
"-j2". However this test will stop testing negative arguments when the
parser changes (the test will also have to be adjusted when the parser
changes).

Add one additional test with a "-j -3" argument that will test a
negative argument forever.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@martin-schulze-vireso
Copy link
Member

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants