Skip to content

Commit

Permalink
fix: swapoff -a before starting tests with a:wqa real swap file
Browse files Browse the repository at this point in the history
  • Loading branch information
quidame committed Feb 15, 2021
1 parent 8399ca8 commit c20f3b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/targets/mount/tasks/swapfile_freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Tasks to validate swapfile management (enabling/disabling its use) on FreeBSD.
# The swapfile MUST be associated to a memory disk, that becomes the 'src'.

- name: Swap off all (cleanup previous erraneous tests)
command:
cmd: swapoff -a


- name: Try to activate swapfile
vars:
swapfile: /var/swapfile0
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/targets/mount/tasks/swapfile_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Tasks to validate swapfile management (enabling/disabling its use) on Linux.
# The swapfile COULD be associated to a loop device, that would become the 'src'.

- name: Swap off all (cleanup previous erraneous tests)
command:
cmd: swapoff -a


- name: Try to activate swapfile
vars:
swapfile: /var/swapfile0
Expand Down

0 comments on commit c20f3b5

Please sign in to comment.