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

Fix test_ebs_snapshot, output name instead of pkname from df call for fs check #6434

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration-tests/tests/storage/test_ebs.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ def _test_ebs_resize(remote_command_executor, mount_dir, volume_size):
# /dev/nvme1n1p1 9.8G 37M 9.3G 1% /ebs_mount_dir
# /dev/nvme2n1p1 9.8G 37M 9.3G 1% /existing_mount_dir
filesystem_name = remote_command_executor.run_remote_command(
"df -h -t ext4 | tail -n +2 |grep '{mount_dir}' | awk '{{print $1}}'".format(mount_dir=mount_dir)
"df -h -t ext4 | tail -n +2 | grep '{mount_dir}' | awk '{{print $1}}'".format(mount_dir=mount_dir)
).stdout

# get the volume name given the filesystem name
# example input: /dev/nvme1n1p1
# example output: nvme1n1
volume_name = remote_command_executor.run_remote_command(
"lsblk -no pkname {filesystem_name}".format(filesystem_name=filesystem_name)
"lsblk -no name {filesystem_name}".format(filesystem_name=filesystem_name)
).stdout

# get the volume size of the volume
Expand Down
Loading