-
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
ZTS: zpool_create_002 clean up leftover filedisk #7439
Conversation
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.
Thanks for the PR! Feedback below.
@@ -50,14 +50,14 @@ function cleanup | |||
for pool in $TESTPOOL $TESTPOOL1 $TESTPOOL2 $TESTPOOL3 $TESTPOOL4 \ | |||
$TESTPOOL5 $TESTPOOL6 | |||
do | |||
poolexists $pool && destroy_pool $pool | |||
poolexists $pool && log_must destroy_pool $pool |
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.
You can actually get rid of the poolexists
check. destroy_pool
already performs the check. You also don’t want to use log_must
, if one destroy fails, you’d still want to attempt the other ones.
zpool_create_002_pos did not clean up filedisk files left over from running the test. Signed-off-by: bunder2015 <[email protected]> Issue #7435
Thanks for the tips, adjusted and repushed. |
Codecov Report
@@ Coverage Diff @@
## master #7439 +/- ##
==========================================
+ Coverage 76.59% 76.61% +0.02%
==========================================
Files 335 335
Lines 107017 107017
==========================================
+ Hits 81971 81993 +22
+ Misses 25046 25024 -22
Continue to review full report at Codecov.
|
Description
zpool_create_002_pos did not clean up filedisk files left over from
running the test.
Motivation and Context
Keeping /var/tmp clean.
Issue #7435
How Has This Been Tested?
Local test runner
Types of changes
Checklist:
Signed-off-by
.