Skip to content

Commit

Permalink
initrd.expected-contents: check exec mode for `/usr/lib/udev/google…
Browse files Browse the repository at this point in the history
…_nvme_id`
  • Loading branch information
HuijingHei committed May 16, 2023
1 parent 1553518 commit 0e3d1db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/kola/files/initrd/expected-contents
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0e3d1db

Please sign in to comment.