Skip to content

Commit

Permalink
Fix test_ebs_snapshot, output instead of from df call for fs check
Browse files Browse the repository at this point in the history
  • Loading branch information
dreambeyondorange committed Sep 18, 2024
1 parent 6f9db73 commit 40ad0b2
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 40ad0b2

Please sign in to comment.