Skip to content

Commit

Permalink
Merge pull request #386 from SUSE-Enceladus/grow-root
Browse files Browse the repository at this point in the history
Use consistent findmt options
  • Loading branch information
smarlowucf authored May 13, 2024
2 parents 496dc7f + 16bc74a commit b7dc08d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions usr/share/lib/img_proof/tests/SLES/test_sles_grow_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_sles_grow_root(host):
root_size = int(root_size.replace('G', ''))

# Get boot partition size
boot_part = host.run('findmnt -n -f -o SOURCE /boot').stdout.strip()
boot_part = host.run('findmnt -v -n -f -o SOURCE /boot').stdout.strip()

if boot_part:
# Some images have a separate boot partition that is >= 1G
Expand All @@ -51,11 +51,9 @@ def test_sles_grow_root(host):
boot_size = 0

# Get /var partition size
var_part = host.run(
'findmnt -n -f -o SOURCE /var --nofsroot'
).stdout.strip()
var_part = host.run('findmnt -v -n -f -o SOURCE /var').stdout.strip()

if var_part:
if var_part and var_part != root_part:
# Some images have a separate /var partition that is >= 1G
result = host.run(
'df -BG {part} | sed 1D'.format(part=var_part)
Expand Down

0 comments on commit b7dc08d

Please sign in to comment.