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

find_partition_with_freespace: refactor function to hoist to node level #1743

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

mcgov
Copy link
Collaborator

@mcgov mcgov commented Feb 14, 2022

@somil55 added a function find_partition_with_freespace to the nested virt test suite and it looks super useful. Let's hoist it!

This PR:

  • Moves the check-for-freespace function to node level.
  • Renames and moves a dependency for that function. The renamed function check_partition_size becomes a public function of the Df tool, since it depends on that tool to perform it's check.

The end result is that the caller can use node.find_partition_with_freespace(size_in_gb)

lisa/tools/df.py Outdated Show resolved Hide resolved
@squirrelsc squirrelsc merged commit c6f1d99 into main Feb 14, 2022
@squirrelsc squirrelsc deleted the mcgov/node_freesize_hoist branch February 14, 2022 21:23
lesscodingmorehappiness pushed a commit that referenced this pull request Feb 15, 2022
…el (#1743)

* refactor find_partition_with_freespace and hoist to node level
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

3 participants