-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add regression test for "zpool list -p" #9134
Conversation
Signed-off-by: Paul Dagnelie <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM in general. I have 2 questions:
I am a bit curious about the failure here though:http://build.zfsonlinux.org/builders/CentOS%206%20x86_64%20%28TEST%29/builds/7655/steps/shell_9/logs/summary
...
Test: /usr/share/zfs/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get_005_pos (run as root) [00:00] [FAIL]
21:28:58.32 sudo: unable to execute /usr/share/zfs/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get_005_pos.ksh: No such file or directory
...
Is there a permission issue with the file?
One more question: Do we really need a whole new file (zpool_get_parsable.cfg
) for just a list of strings (properties
) that is used for only one test? Would it make more sense to just add those in zpool_get_005_pos.ksh
?
I'm not sure why the test failed on CentOS like that, and nowhere else... The permissions all look right, and the file is listed in the makefile, same as all the others. If it was an issue that basic I wouldn't think it would be platform specific? As for the zpool_get_parsable, I didn't write the original patch, so if @prakashsurya wants to offer a different opinion he should feel free, but the way I understand it the list in that file isn't actually specific to this test; any test that wants to work with |
Looks like I committed the original change in 2014; I have no recollection of what I might have been thinking back then, but Paul's description seems reasonable to me. With that said, it looks like nothing has used that file since it was added (at least nothing is currently using it), so perhaps in-lining the array, as Serapheim suggests, would be better. Ultimately, I'm fine either way. |
Signed-off-by: Paul Dagnelie <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9134 +/- ##
==========================================
- Coverage 79.33% 79.08% -0.25%
==========================================
Files 400 400
Lines 121692 121692
==========================================
- Hits 96542 96245 -297
- Misses 25150 25447 +297
Continue to review full report at Codecov.
|
Update: The CentOS failure was probably caused by the #! line being different in this test than in the others; on other platforms, ksh could be found in either location, but on CentOS it's only in |
tests/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get_005_pos.ksh
Outdated
Show resolved
Hide resolved
tests/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get_005_pos.ksh
Show resolved
Hide resolved
Other than this test, zpool list -p is not well tested by any of the automated tests. Add a test for zpool list -p. Reviewed-by: Prakash Surya <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes openzfs#9134
Other than this test, zpool list -p is not well tested by any of the automated tests. Add a test for zpool list -p. Reviewed-by: Prakash Surya <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes openzfs#9134
Other than this test, zpool list -p is not well tested by any of the automated tests. Add a test for zpool list -p. Reviewed-by: Prakash Surya <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes openzfs#9134
Other than this test, zpool list -p is not well tested by any of the automated tests. Add a test for zpool list -p. Reviewed-by: Prakash Surya <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #9134
Signed-off-by: Paul Dagnelie [email protected]
Motivation and Context
Other than this test,
zpool list -p
is not well tested by any of the automated tests.Description
Add a test for
zpool list -p
How Has This Been Tested?
Ran the test on Linux
Types of changes
Checklist:
Signed-off-by
.