Skip to content

Commit

Permalink
Match on word for excluding pools from tests
Browse files Browse the repository at this point in the history
Running tests locally were failing on cleanup scripts due to having a
pool named "pool". Match on word so the cleanup logic will cleanup
"testpool.*" while ignoring "pool".

Reviewed-by: loli10K <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Tim Crawford <[email protected]>
Closes #5703
  • Loading branch information
crawfxrd authored and behlendorf committed Jan 31, 2017
1 parent 539d33c commit 544b805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zfs-tests/include/libtest.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function default_cleanup_noexit
[[ -z "$KEEP" ]] && KEEP="rpool"
exclude=`eval $ECHO \"'(${KEEP})'\"`
ALL_POOLS=$($ZPOOL list -H -o name \
| $GREP -v "$NO_POOLS" | $EGREP -v "$exclude")
| $GREP -v "$NO_POOLS" | $EGREP -vw "$exclude")
# Here, we loop through the pools we're allowed to
# destroy, only destroying them if it's safe to do
# so.
Expand Down

0 comments on commit 544b805

Please sign in to comment.