Skip to content

Commit

Permalink
tests/installed: Add a free-space success path test
Browse files Browse the repository at this point in the history
We implicitly test the success percent path a lot, but not the
absolute path.

Closes: #1632
Approved by: jlebon
  • Loading branch information
cgwalters authored and rh-atomic-bot committed Jun 19, 2018
1 parent 5e9d382 commit 0f88a2a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/installed/nondestructive/itest-pull-space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ if ostree --repo=mnt/repo pull-local /ostree/repo ${host_commit} 2>err.txt; then
fatal "succeeded in doing a pull with no free space"
fi
assert_file_has_content err.txt "min-free-space-size"
echo "ok min-free-space-size"
echo "ok min-free-space-size (error)"

umount mnt
losetup -d ${blkdev}
rm testblk.img

# min-free-space-size success
ostree --repo=repo init --mode=bare-user
echo 'fsync=false' >> repo/config
echo 'min-free-space-size=1MB' >> repo/config
ostree --repo=repo pull-local /ostree/repo ${host_commit}
echo "ok min-free-space-size (success)"

date

0 comments on commit 0f88a2a

Please sign in to comment.