From 3182cdf52ee15d843be264e5f21d4f34026727c0 Mon Sep 17 00:00:00 2001 From: Manuel Montecelo Date: Thu, 8 Nov 2018 13:55:25 +0100 Subject: [PATCH] TT#46902 Check that /var/cores is not there We have not been using /var/cores for a while, since starting to use systemd-coredump around releases mr6.2 or mr6.3, so this file is now unnecessary. However, there was a script creating the file and this test ensuring that it existed and no core dump files were present. It's not particularly tied to TT#46902, but it got discovered while working on it and the task also touches the area of "core dump" files. Change-Id: If75fcfa28a75359033ab4efddec503da401e61bb (cherry picked from commit 34c60bb30712dbe2d1b5bb1549cc0555938443e1) --- templates/110_filesys-cores.yaml.tt2 | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/templates/110_filesys-cores.yaml.tt2 b/templates/110_filesys-cores.yaml.tt2 index 9052bc0..8c5a1ba 100644 --- a/templates/110_filesys-cores.yaml.tt2 +++ b/templates/110_filesys-cores.yaml.tt2 @@ -1,20 +1,7 @@ file: /var/cores: - exists: true - mode: "1777" - owner: root - group: root - filetype: directory - contains: [] - -command: - "ls /var/cores/": - exit-status: 0 - stdout: - - "!/^core\\..+/" - stderr: [] + exists: false -file: /var/lib/systemd/coredump: exists: true mode: "0755"