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

ZTS: Use compatible arg order in tests #9228

Merged
merged 1 commit into from Aug 29, 2019
Merged

ZTS: Use compatible arg order in tests #9228

merged 1 commit into from Aug 29, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 28, 2019

Motivation and Context

Some implementations (BSD) of getopt() and getopt_long() want options before arguments.

Description

Reorder arguments to zfs/zpool in tests to put all the options first.

How Has This Been Tested?

This has been tested by running the affected tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

BSD getopt() and getopt_long() want options before arguments.

Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Aug 28, 2019
@codecov
Copy link

codecov bot commented Aug 29, 2019

Codecov Report

Merging #9228 into master will decrease coverage by 6.51%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9228      +/-   ##
==========================================
- Coverage   79.13%   72.62%   -6.52%     
==========================================
  Files         400      371      -29     
  Lines      122027   119441    -2586     
==========================================
- Hits        96565    86741    -9824     
- Misses      25462    32700    +7238
Flag Coverage Δ
#kernel 72.39% <ø> (-7.33%) ⬇️
#user 63.32% <ø> (-3.61%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28c91ab...47bfd0c. Read the comment docs.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Aug 29, 2019
@behlendorf behlendorf merged commit f66ad58 into openzfs:master Aug 29, 2019
@ghost ghost deleted the zts-argorder branch August 29, 2019 18:18
ikozhukhov pushed a commit to ikozhukhov/zfs that referenced this pull request Aug 30, 2019
BSD getopt() and getopt_long() want options before arguments.
Reorder arguments to zfs/zpool in tests to put all the options first.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes openzfs#9228
Signed-off-by: Igor Kozhukhov <igor@dilos.org>
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 24, 2019
BSD getopt() and getopt_long() want options before arguments.
Reorder arguments to zfs/zpool in tests to put all the options first.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes openzfs#9228
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 27, 2019
BSD getopt() and getopt_long() want options before arguments.
Reorder arguments to zfs/zpool in tests to put all the options first.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes openzfs#9228
tonyhutter pushed a commit that referenced this pull request Jan 23, 2020
BSD getopt() and getopt_long() want options before arguments.
Reorder arguments to zfs/zpool in tests to put all the options first.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants