Merge "Add a bubblewrap ro mount test"

This commit is contained in:
Zuul
2022-04-28 09:01:14 +00:00
committed by Gerrit Code Review
4 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
- hosts: localhost
tasks:
- name: Verify that we are unable to write to a ro mount
shell: "cp {{ zuul.executor.inventory_file }} /bin/bubblewrap-test-failure"
ignore_errors: true
register: cp_result
- assert:
that:
- cp_result.rc == 1
- "'Read-only file system' in cp_result.stdout"
- name: Verify that we are able to write to a rw mount
shell: "cp {{ zuul.executor.inventory_file }} {{ zuul.executor.work_root }}/bubblewrap-test-success"

View File

@@ -239,3 +239,9 @@
name: failpost
run: playbooks/post-broken.yaml
post-run: playbooks/post-broken.yaml
- job:
name: bubblewrap
run: playbooks/bubblewrap.yaml
nodeset:
nodes: []

View File

@@ -34,3 +34,4 @@
- multiple-child-no-run
- multiple-run
- multiple-run-failure
- bubblewrap