From 0e3d1db247e836044e0960f46898cac069b6abb6 Mon Sep 17 00:00:00 2001 From: Huijing Hei Date: Tue, 16 May 2023 14:55:41 +0800 Subject: [PATCH] `initrd.expected-contents`: check exec mode for `/usr/lib/udev/google_nvme_id` --- tests/kola/files/initrd/expected-contents | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kola/files/initrd/expected-contents b/tests/kola/files/initrd/expected-contents index 73642a92c2..b97b24d9a4 100755 --- a/tests/kola/files/initrd/expected-contents +++ b/tests/kola/files/initrd/expected-contents @@ -36,4 +36,10 @@ for file in "${required_initrd_files[@]}"; do fi done +google_nvme_id="/usr/lib/udev/google_nvme_id" +if [ "$(stat -c '%a' ${tmpd}/${google_nvme_id})" != 755 ]; then + ls -l ${tmpd}/${google_nvme_id} + fatal "${google_nvme_id} permission is not expected 755" +fi + ok "Found expected initrd files"