- Rename the file so that it makes more sense with the new checks. - Improve the directory contents check to be more robust against changes in ls output (ideally goss would support this directly with the contains directive). Change-Id: I8bebb929240e3147627a1ec5db246f73f948799echanges/79/17379/2
parent
6dd64ec3dc
commit
16c0119e7e
@ -0,0 +1,15 @@
|
||||
file:
|
||||
/var/cores:
|
||||
exists: true
|
||||
mode: "1777"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: directory
|
||||
contains: []
|
||||
|
||||
command:
|
||||
"ls /var/cores/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "!/^core\\..+/"
|
||||
stderr: []
|
||||
@ -1,6 +0,0 @@
|
||||
command:
|
||||
"ls -la /var/cores/core.*":
|
||||
exit-status: 2
|
||||
stdout: []
|
||||
stderr:
|
||||
- "/ls: cannot access '??/var/cores/core.*'??: No such file or directory/"
|
||||
Loading…
Reference in new issue